#################################
#################################
## Realm Disruption Events     ##
## By Byakhiam and Chris Stone ##
## Added May 05                ##
#################################
#################################

##
## Moved a number of events here from other files. Do not use IDs in those ranges without checking and updating free IDs in the appropriate files.
## Would be better to use new ID range instead.
##


#Moved from Intrigue Events file - free IDs in that file before adding more in this range.

#############################################################
# Catholic vassals in Middle East or North Africa break free from distant lieges

character_event = {
	id = 6102

	picture = "event_claim"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = religion value = catholic }
		condition = { type = not value = { type = atwar } }
		condition = { type = not value = { type = trait value = modest } }
		condition = { type = age value = 18 }
		condition = { type = not value = { type = primary_heir } }
		condition = { type = realm_ruler
			condition = { type = and
				condition = { type = religion value = catholic }
				#condition = { type = not value = { type = atwar } }
				condition = { type = not value = { type = prestige value = 5000 } }
			}
		}
		condition = { type = or
			condition = { type = and
				condition = { type = region value = Middle_East }
				condition = { type = capital
					condition = { type = region value = Middle_East }
				}
				condition = { type = liege
					condition = { type = capital
						condition = { type = and
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = area value = 780 } }
							condition = { type = not value = { type = area value = 789 } }
							condition = { type = not value = { type = area value = 790 } }
							condition = { type = not value = { type = area value = 594 } }
							condition = { type = not value = { type = area value = 597 } }
							condition = { type = not value = { type = area value = 600 } }
							condition = { type = not value = { type = area value = 604 } }
							condition = { type = not value = { type = area value = 609 } }
							condition = { type = not value = { type = area value = 612 } }
							condition = { type = not value = { type = area value = 615 } }
							condition = { type = not value = { type = area value = 618 } }
						}
					}
				}
			}
			condition = { type = and
				condition = { type = region value = Asia_Minor }
				condition = { type = capital condition = { type = or
					condition = { type = area value = 762 }
					condition = { type = area value = 707 }
					condition = { type = area value = 756 }
					condition = { type = area value = 777 }
				} }
				condition = { type = liege
					condition = { type = capital
						condition = { type = and
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = area value = 780 } }
							condition = { type = not value = { type = area value = 789 } }
							condition = { type = not value = { type = area value = 790 } }
						}
					}
				}
			}
			condition = { type = and
				condition = { type = region value = North_Africa }
				condition = { type = or
					condition = { type = and
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 821 }
								condition = { type = area value = 828 }
								condition = { type = area value = 831 }
								condition = { type = area value = 837 }
								condition = { type = area value = 839 }
								condition = { type = area value = 847 }
								condition = { type = area value = 848 }
							}
						}
						condition = { type = liege
							condition = { type = capital
								condition = { type = and
									condition = { type = not value = { type = region value = Spain } }
									condition = { type = not value = { type = region value = North_Africa } }
								}
							}
						}
					}
					condition = { type = and
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 815 }
								condition = { type = area value = 810 }
								condition = { type = area value = 805 }
							}
						}
						condition = { type = liege
							condition = { type = capital
								condition = { type = and
									condition = { type = not value = { type = area value = 339 } }
									condition = { type = not value = { type = area value = 334 } }
									condition = { type = not value = { type = region value = North_Africa } }
								}
							}
						}
					}
					condition = { type = and
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 780 }
								condition = { type = area value = 789 }
								condition = { type = area value = 790 }
								condition = { type = area value = 803 }
							}
						}
						condition = { type = liege
							condition = { type = capital
								condition = { type = and
									condition = { type = not value = { type = area value = 780 } }
									condition = { type = not value = { type = area value = 789 } }
									condition = { type = not value = { type = area value = 790 } }
									condition = { type = not value = { type = area value = 803 } }
									condition = { type = not value = { type = area value = 815 } }
									condition = { type = not value = { type = area value = 810 } }
									condition = { type = not value = { type = area value = 805 } }
									condition = { type = not value = { type = region value = Middle_East } }
									condition = { type = not value = { type = region value = Asia_Minor } }
								}
							}
						}
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 60

		modifier = {
			condition = { type = duchy }
			factor = 0.25
		}
		modifier = {
			condition = { type = has_vassal }
			factor = 0.5
		}
		modifier = {
			condition = { type = is_married }
			factor = 0.75
		}
		modifier = {
			condition = { type = martial value = 8 }
			factor = 0.9
		}
		modifier = {
			condition = { type = martial value = 12 }
			factor = 0.9
		}
		modifier = {
			condition = { type = stewardship value = 8 }
			factor = 0.9
		}
		modifier = {
			condition = { type = stewardship value = 12 }
			factor = 0.9
		}
		modifier = {
			condition = { type = diplomacy value = 8 }
			factor = 0.9
		}
		modifier = {
			condition = { type = diplomacy value = 12 }
			factor = 0.9
		}
		modifier = {
			condition = { type = intrigue value = 8 }
			factor = 0.9
		}
		modifier = {
			condition = { type = intrigue value = 12 }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.8
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = diplomacy value = 9 }
					condition = { type = chancellor_csc condition = { type = diplomacy value = 12 } }
				}
			}
			factor = 2.0
		}
		modifier = {
			condition = { type = liege
				condition = { type = and
					condition = { type = not value = { type = diplomacy value = 5 } }
					condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 7 } } }
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = exists value = JERU }
			condition = { type = not value = { type = realm_ruler condition = { type = title value = JERU } } }
			condition = { type = or
				condition = { type = and
					condition = { type = region value = asia_minor }
					condition = { type = capital condition = { type = or
						condition = { type = area value = 769 } # Phoenicia
						condition = { type = area value = 777 } # Jordan
					} }
				}
				condition = { type = and
					condition = { type = region value = north_africa }
					condition = { type = capital condition = { type = area value = 780 } }
				}
			}
			factor = 0.1
		}
	}

	action_a = {
		ai_chance = 99
		effect = { type = trigger for = liege value = 6103 }
		effect = { type = add_title_claim value = liege }
		effect = { type = independence }
		effect = { type = loyalty value = 1.0 }
		effect = { type = prestige value = 50 }
	}
	action_b = {
		ai_chance = 1
		effect = { type = loyalty value = 0.2 }
		effect = { type = prestige value = -20 }
		effect = { type = piety value = 20 }
		effect = { type = add_trait value = modest }
	}
}

# Reaction event for liege
character_event = {
	id = 6103

	picture = "event_intrigue"

	immidiate = {
		effect = { type = prestige value = 50 }
		effect = { type = piety value = 50 }
	}
}

#################################
# Distant vassals of vassals break free, general event

character_event = {
	id = 6104

	picture = "event_claim"

	trigger = {
		condition = { type = county }
		condition = { type = not value = { type = duchy } } 						#this event is only for a vassal of a vassal - the civil was series handles vassals of independent rulers
		condition = { type = is_vassal }
		condition = { type = age value = 18 }
		condition = { type = not value = { type = atwar } }
		condition = { type = not value = { type = trait value = modest } }
		condition = { type = or
			condition = { type = martial value = 5 }
			condition = { type = intrigue value = 5 }
		}
		condition = { type = not value = { type = primary_heir } }
		condition = { type = liege
			condition = { type = and
				condition = { type = not value = { type = is_independent } } 			#this event is only for a vassal of a vassal - the civil was series handles vassals of independent rulers
				condition = { type = not value = { type = diplomacy value = 9 } }
				condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 12 } } }
				condition = { type = not value = { type = prestige value = 5000 } }
			}
		}
		condition = { type = or
			condition = { type = and
				condition = { type = region value = britain }
				condition = { type = capital condition = { type = region value = britain } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 3 } } # Eire
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 18 } # Wales
							condition = { type = area value = 17 } # South England
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 18 } # Wales
							condition = { type = area value = 17 } # South England
							condition = { type = area value = 58 } # North England
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 58 } } # North England
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 18 } # Wales
							condition = { type = area value = 17 } # South England
							condition = { type = area value = 58 } # North England
							condition = { type = area value = 40 } # Scotland
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 40 } } # Scotland
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 58 } # North England
							condition = { type = area value = 40 } # Scotland
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = scandinavia }
				condition = { type = capital condition = { type = region value = scandinavia } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 1 } } # Iceland
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 1 } # Iceland
							condition = { type = province value = 35 } # Western Isles
							condition = { type = province value = 36 } # Orkney
							condition = { type = province value = 37 } # Caithness
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 265 } # Elbe
							condition = { type = province value = 305 } # Bornholm
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 265 } # Elbe
							condition = { type = area value = 303 } # Lake area
							condition = { type = area value = 304 } # Oder
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 268 } } # Fjords
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 268 } # Fjords
							condition = { type = area value = 280 } # Bothnia
							condition = { type = area value = 303 } # Lake area
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 280 } } # Bothnia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 280 } # Bothnia
							condition = { type = area value = 268 } # Fjords
							condition = { type = area value = 303 } # Lake area
							condition = { type = area value = 381 } # Baltic
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 303 } } # Lake area
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 268 } # Fjords
							condition = { type = area value = 280 } # Bothnia
							condition = { type = area value = 303 } # Lake area
							condition = { type = area value = 304 } # Oder
							condition = { type = area value = 265 } # Elbe
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 381 } } # Baltic
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 280 } # Bothnia
							condition = { type = area value = 387 } # White sea
							condition = { type = area value = 404 } # Vetluga
							condition = { type = area value = 410 } # Volkhov
							condition = { type = area value = 381 } # Baltic
							condition = { type = area value = 380 } # Livonia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = province value = 376 } } # sel
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 376 } # Livonia
							condition = { type = area value = 280 } # Bothnia
							condition = { type = area value = 303 } # Lake area
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = netherlands }
				condition = { type = capital condition = { type = region value = netherlands } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 76 } } # Schelde
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
						condition = { type = area value = 76 } # Schelde
							condition = { type = area value = 80 } # Nieder-Rhein
							condition = { type = area value = 118 } # Rhein
							condition = { type = area value = 95 } # Seine
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 76 } # Schelde
							condition = { type = area value = 80 } # Nieder-Rhein
							condition = { type = area value = 118 } # Rhein
							condition = { type = area value = 86 } # Wesser
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = france }
				condition = { type = capital condition = { type = region value = france } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 76 } } # Schelde
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 76 } # Schelde
							condition = { type = area value = 80 } # Nieder-Rhein
							condition = { type = area value = 118 } # Rhein
							condition = { type = area value = 95 } # Seine
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 95 } # Seine
							condition = { type = province value = 129 } # Verdun
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 76 } # Schelde
							condition = { type = area value = 95 } # Seine
							condition = { type = area value = 101 } # Aulne
							condition = { type = area value = 118 } # Rhein
							condition = { type = area value = 107 } # Loire
							condition = { type = area value = 225 } # Massif-Central
							condition = { type = area value = 226 } # Rhone
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 101 } } # Aulne
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 95 } # Seine
							condition = { type = area value = 101 } # Aulne
							condition = { type = area value = 107 } # Loire
							condition = { type = area value = 143 } # Garonne
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 107 } } # Loire
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 95 } # Seine
							condition = { type = area value = 101 } # Aulne
							condition = { type = area value = 107 } # Loire
							condition = { type = area value = 143 } # Garonne
							condition = { type = area value = 225 } # Massif-Central
							condition = { type = area value = 226 } # Rhone
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 143 } # Garonne
							condition = { type = province value = 151 } # Labourd
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 101 } # Aulne
							condition = { type = area value = 107 } # Loire
							condition = { type = area value = 143 } # Garonne
							condition = { type = area value = 225 } # Massif-Central
							condition = { type = area value = 226 } # Rhone
							condition = { type = area value = 151 } # Pyrenees
							condition = { type = area value = 207 } # Ribbaroja
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 107 } # Loire
							condition = { type = area value = 143 } # Garonne
							condition = { type = area value = 225 } # Massif-Central
							condition = { type = area value = 226 } # Rhone
							condition = { type = area value = 228 } # Alpes Martimes
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 226 } # Rhone
							condition = { type = area value = 228 } # Alpes Martimes
							condition = { type = province value = 134 } # Sundgau
							condition = { type = province value = 135 } # Besancon
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 95 } # Seine
							condition = { type = area value = 107 } # Loire
							condition = { type = area value = 143 } # Garonne
							condition = { type = area value = 225 } # Massif-Central
							condition = { type = area value = 226 } # Rhone
							condition = { type = area value = 228 } # Alpes Martimes
							condition = { type = area value = 207 } # Ribbaroja
							condition = { type = area value = 135 } # Rhein
							condition = { type = area value = 249 } # Baden
							condition = { type = area value = 241 } # Alps
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = spain }
				condition = { type = capital condition = { type = region value = spain } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 152 } # Pyrenees
							condition = { type = area value = 154 } # Leyn
							condition = { type = area value = 172 } # Ebro
							condition = { type = area value = 202 } # Ribbaroja
							condition = { type = area value = 150 } # Garonne
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 154 } } # Leyn
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 152 } # Pyrenees
							condition = { type = area value = 154 } # Leyn
							condition = { type = area value = 160 } # Tejo
							condition = { type = area value = 197 } # La mancha
							condition = { type = area value = 172 } # Ebro
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 160 } } # Tejo
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 154 } # Leyn
							condition = { type = area value = 160 } # Tejo
							condition = { type = area value = 197 } # La mancha
							condition = { type = area value = 162 } # Extremadura
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 162 } } # Extremadura
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 162 } # Extremadura
							condition = { type = area value = 165 } # Sierra Nevada
							condition = { type = area value = 160 } # Tejo
							condition = { type = area value = 197 } # La mancha
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 162 } # Extremadura
							condition = { type = area value = 165 } # Sierra Nevada
							condition = { type = area value = 197 } # La mancha
							condition = { type = area value = 172 } # Ebro
							condition = { type = area value = 827 } # Baleares
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 197 } } # La mancha
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 162 } # Extremadura
							condition = { type = area value = 165 } # Sierra Nevada
							condition = { type = area value = 160 } # Tejo
							condition = { type = area value = 197 } # La mancha
							condition = { type = area value = 154 } # Leyn
							condition = { type = area value = 172 } # Ebro
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 172 } } # Ebro
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 165 } # Sierra Nevada
							condition = { type = area value = 197 } # La mancha
							condition = { type = area value = 154 } # Leyn
							condition = { type = area value = 172 } # Ebro
							condition = { type = area value = 200 } # Pyrenees
							condition = { type = area value = 202 } # Ribbaroja
							condition = { type = area value = 827 } # Baleares
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 172 } # Ebro
							condition = { type = area value = 200 } # Pyrenees
							condition = { type = area value = 202 } # Ribbaroja
							condition = { type = area value = 827 } # Baleares
							condition = { type = area value = 211 } # Garonne
							condition = { type = area value = 212 } # Rhone
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = italy }
				condition = { type = capital condition = { type = region value = italy } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 236 } # Alpes Martimes
							condition = { type = area value = 221 } # Rhone
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 233 } # Po
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 233 } # Po
							condition = { type = area value = 456 } # Alpi Carniche
							condition = { type = province value = 317 } # Trent
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 236 } # Alpes Martimes
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 233 } # Po
							condition = { type = area value = 323 } # Papal States
							condition = { type = area value = 324 } # Sardgena
							condition = { type = area value = 456 } # Alpi Carniche
							condition = { type = area value = 458 } # Dinara Planina
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 323 } } # Papal States
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 233 } # Po
							condition = { type = area value = 323 } # Papal States
							condition = { type = area value = 324 } # Sardgena
							condition = { type = area value = 334 } # Apennino
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 324 } } # Sardgena
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 233 } # Po
							condition = { type = area value = 323 } # Papal States
							condition = { type = area value = 324 } # Sardgena
							condition = { type = area value = 236 } # Alpes Martimes
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 334 } } # Apennino
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 323 } # Papal States
							condition = { type = area value = 334 } # Apennino
							condition = { type = area value = 339 } # Sicilia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 339 } } # Sicilia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 334 } # Apennino
							condition = { type = area value = 339 } # Sicilia
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = germany }
				condition = { type = capital condition = { type = region value = germany } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 85 } # Nieder-Rhein
							condition = { type = area value = 86 } # Wesser
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 85 } # Nieder-Rhein
							condition = { type = area value = 86 } # Wesser
							condition = { type = area value = 115 } # Schelde
							condition = { type = area value = 119 } # Rhein
							condition = { type = area value = 256 } # Elbe
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 119 } # Rhein
							condition = { type = area value = 115 } # Schelde
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 85 } # Nieder-Rhein
							condition = { type = area value = 86 } # Wesser
							condition = { type = area value = 115 } # Schelde
							condition = { type = area value = 119 } # Rhein
							condition = { type = area value = 123 } # Main
							condition = { type = area value = 136 } # Seine
							condition = { type = area value = 240 } # Rhone
							condition = { type = area value = 242 } # Alps
							condition = { type = area value = 249 } # Baden
							condition = { type = area value = 256 } # Elbe
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 123 } } # Main
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 119 } # Rhein
							condition = { type = area value = 123 } # Main
							condition = { type = area value = 255 } # Baden
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 238 } } # Alps
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 119 } # Rhein
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 255 } # Baden
							condition = { type = area value = 240 } # Rhone
							condition = { type = area value = 237 } # Alps-Martimes
							condition = { type = area value = 235 } # Po
							condition = { type = area value = 313 } # Danube
							condition = { type = area value = 448 } # Donau
							condition = { type = area value = 455 } # Alpi Carniche
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 255 } } # Baden
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 119 } # Rhein
							condition = { type = area value = 123 } # Main
							condition = { type = area value = 255 } # Baden
							condition = { type = area value = 256 } # Elbe
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 313 } # Danube
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 256 } } # Elbe
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 119 } # Rhein
							condition = { type = area value = 255 } # Baden
							condition = { type = area value = 256 } # Elbe
							condition = { type = area value = 257 } # Wesser
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 304 } } # Oder
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 303 } # Lake area
							condition = { type = area value = 304 } # Oder
							condition = { type = area value = 256 } # Elbe
							condition = { type = area value = 363 } # Vltava
							condition = { type = area value = 368 } # Wisla
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 313 } } # Danube
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 256 } # Elbe
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 255 } # Baden
							condition = { type = area value = 313 } # Danube
							condition = { type = area value = 448 } # Donau
							condition = { type = area value = 363 } # Vltava
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 363 } } # Vltava
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 256 } # Elbe
							condition = { type = area value = 313 } # Danube
							condition = { type = area value = 304 } # Oder
							condition = { type = area value = 448 } # Donau
							condition = { type = area value = 363 } # Vltava
							condition = { type = area value = 368 } # Wisla
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 368 } } # Wisla
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 304 } # Oder
							condition = { type = area value = 363 } # Vltava
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 371 } # Livonia
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 442 } # Donau
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 534 } # Dniestr
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 448 } } # Donau
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 313 } # Danube
							condition = { type = area value = 448 } # Donau
							condition = { type = area value = 445 } # Duna
							condition = { type = area value = 363 } # Vltava
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 455 } # Alpi Carniche
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 460 } # Dinara planina
							condition = { type = area value = 518 } # Dunav
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 448 } # Donau
							condition = { type = area value = 358 } # Po
							condition = { type = area value = 455 } # Alpi Carniche
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 460 } # Dinara planina
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = eastern_europe }
				condition = { type = capital condition = { type = region value = eastern_europe } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 368 } } # Wisla
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 304 } # Oder
							condition = { type = area value = 363 } # Vltava
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 371 } # Livonia
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 442 } # Donau
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 534 } # Dniestr
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 371 } } # Livonia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 371 } # Livonia
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 412 } # Volkhov
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 420 } } # Daugava
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 371 } # Livonia
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 412 } # Volkhov
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 551 } # Sredne Russka
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 424 } } # Polesye
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 534 } # Dniester
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 551 } # Sredne Russka
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 443 } } # Duna
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 443 } # Duna
							condition = { type = area value = 442 } # Donau
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 525 } # Carpathians
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 448 } } # Donau
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 313 } # Danube
							condition = { type = area value = 448 } # Donau
							condition = { type = area value = 445 } # Duna
							condition = { type = area value = 363 } # Vltava
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 455 } # Alpi Carniche
							condition = { type = area value = 238 } # Alps
							condition = { type = area value = 460 } # Dinara planina
							condition = { type = area value = 518 } # Dunav
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 512 } } # Dunarea
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 498 } # Maritsa
							condition = { type = area value = 512 } # Dunarea
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 534 } # Dniester
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 521 } } # Dunav
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 443 } # Duna
							condition = { type = area value = 442 } # Donau
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 512 } # Dunarea
							condition = { type = area value = 460 } # Dinara Planina
							condition = { type = area value = 468 } # Crna Gora
							condition = { type = area value = 502 } # Axios
							condition = { type = area value = 498 } # Maritsa
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 525 } } # Carpathians
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 443 } # Duna
							condition = { type = area value = 442 } # Donau
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 512 } # Dunarea
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 534 } # Dniester
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 534 } } # Dniester
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 534 } # Dniester
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 512 } # Dunarea
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 547 } } # Dnepr
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 534 } # Dniester
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 551 } # Sredne Russka
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 559 } # Crimea
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = balkan }
				condition = { type = capital condition = { type = region value = balkan } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 521 } } # Dunav
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 443 } # Duna
							condition = { type = area value = 442 } # Donau
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 525 } # Carpathians
							condition = { type = area value = 512 } # Dunarea
							condition = { type = area value = 460 } # Dinara Planina
							condition = { type = area value = 468 } # Crna Gora
							condition = { type = area value = 502 } # Axios
							condition = { type = area value = 498 } # Maritsa
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 460 } # Dinara Planina
							condition = { type = area value = 358 } # Po
							condition = { type = area value = 457 } # Alpi Carniche
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 442 } # Donau
							condition = { type = area value = 468 } # Crna Gora
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 460 } # Dinara Planina
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 468 } # Crna Gora
							condition = { type = area value = 470 } # Pindhos Oros
							condition = { type = area value = 502 } # Axios
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 468 } # Crna Gora
							condition = { type = area value = 470 } # Pindhos Oros
							condition = { type = area value = 502 } # Axios
							condition = { type = area value = 474 } # Cyclades
							condition = { type = area value = 476 } # Peloponnesos
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 474 } } # Cyclades
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 470 } # Pindhos Oros
							condition = { type = area value = 502 } # Axios
							condition = { type = area value = 474 } # Cyclades
							condition = { type = area value = 476 } # Peloponnesos
							condition = { type = area value = 744 } # Ionia
							condition = { type = area value = 755 } # Anatolia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 470 } # Pindhos Oros
							condition = { type = area value = 502 } # Axios
							condition = { type = area value = 474 } # Cyclades
							condition = { type = area value = 476 } # Peloponnesos
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 502 } } # Axios
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 470 } # Pindhos Oros
							condition = { type = area value = 502 } # Axios
							condition = { type = area value = 474 } # Cyclades
							condition = { type = area value = 476 } # Peloponnesos
							condition = { type = area value = 468 } # Crna Gora
							condition = { type = area value = 494 } # Maritsa
							condition = { type = area value = 521 } # Dunav
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 494 } } # Maritsa
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 502 } # Axios
							condition = { type = area value = 494 } # Maritsa
							condition = { type = area value = 521 } # Dunav
							condition = { type = area value = 509 } # Dunarea
							condition = { type = area value = 744 } # Ionia
							condition = { type = area value = 755 } # Anatolia
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = russia }
				condition = { type = capital condition = { type = region value = russia } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 387 } } # White Sea
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 387 } # White Sea
							condition = { type = area value = 385 } # Baltic
							condition = { type = area value = 399 } # Kama
							condition = { type = area value = 404 } # Vetluga
							condition = { type = area value = 410 } # Volkhov
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 399 } } # Kama
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 387 } # White Sea
							condition = { type = area value = 399 } # Kama
							condition = { type = area value = 404 } # Vetluga
							condition = { type = area value = 586 } # Sura
							condition = { type = area value = 611 } # Bulgar
							condition = { type = area value = 612 } # Urals
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 404 } } # Vetluga
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 387 } # White Sea
							condition = { type = area value = 399 } # Kama
							condition = { type = area value = 404 } # Vetluga
							condition = { type = area value = 586 } # Sura
							condition = { type = area value = 570 } # Oka
							condition = { type = area value = 410 } # Volkhov
							condition = { type = area value = 411 } # Baltic
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 410 } } # Volkhov
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 387 } # White Sea
							condition = { type = area value = 411 } # Baltic
							condition = { type = area value = 404 } # Vetluga
							condition = { type = area value = 570 } # Oka
							condition = { type = area value = 410 } # Volkhov
							condition = { type = area value = 380 } # Livonia
							condition = { type = area value = 418 } # Daugava
							condition = { type = area value = 551 } # Sredne Russka
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 411 } } # Baltic
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 280 } # Bothnia
							condition = { type = area value = 387 } # White sea
							condition = { type = area value = 404 } # Vetluga
							condition = { type = area value = 410 } # Volkhov
							condition = { type = area value = 381 } # Baltic
							condition = { type = area value = 380 } # Livonia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 420 } } # Daugava
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 371 } # Livonia
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 412 } # Volkhov
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 551 } # Sredne Russka
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 424 } } # Polesye
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 368 } # Wisla
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 534 } # Dniester
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 551 } # Sredne Russka
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 420 } # Daugava
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 551 } # Sredne Russka
							condition = { type = area value = 410 } # Volkhov
							condition = { type = area value = 570 } # Oka
							condition = { type = area value = 579 } # Khoper
							condition = { type = area value = 590 } # Sura
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 547 } } # Dnepr
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 424 } # Polesye
							condition = { type = area value = 534 } # Dniester
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 551 } # Sredne Russka
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 559 } # Crimea
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 559 } } # Crimea
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 598 } # Kuban
							condition = { type = area value = 559 } # Crimea
							condition = { type = province value = 496 } # Byzantion
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 563 } } # Don
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 547 } # Dnepr
							condition = { type = area value = 551 } # Sredne Russka
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 579 } # Khoper
							condition = { type = area value = 598 } # Kuban
							condition = { type = area value = 609 } # Bulgar
							condition = { type = area value = 608 } # Depression
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 570 } } # Oka
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 551 } # Sredne Russka
							condition = { type = area value = 410 } # Volkhov
							condition = { type = area value = 570 } # Oka
							condition = { type = area value = 590 } # Sura
							condition = { type = area value = 404 } # Vetluga
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 579 } } # Khoper
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 551 } # Sredne Russka
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 579 } # Khoper
							condition = { type = area value = 590 } # Sura
							condition = { type = area value = 609 } # Bulgar
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 590 } } # Sura
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 551 } # Sredne Russka
							condition = { type = area value = 579 } # Khoper
							condition = { type = area value = 590 } # Sura
							condition = { type = area value = 609 } # Bulgar
							condition = { type = area value = 399 } # Kama
							condition = { type = area value = 404 } # Vetluga
							condition = { type = area value = 570 } # Oka
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 598 } } # Kuban
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 559 } # Crimea
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 598 } # Kuban
							condition = { type = area value = 602 } # Caucasus
							condition = { type = area value = 608 } # Depression
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 600 } } # Caucasus
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 598 } # Kuban
							condition = { type = area value = 602 } # Caucasus
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 672 } # Armenia
							condition = { type = area value = 669 } # Kura
							condition = { type = area value = 705 } # Weird Shit
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 608 } } # Depression
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 598 } # Kuban
							condition = { type = area value = 602 } # Caucasus
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 609 } # Bulgar
							condition = { type = area value = 617 } # Samara
							condition = { type = area value = 618 } # Khazaks
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 609 } } # Bulgar
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 399 } # Kama
							condition = { type = area value = 586 } # Sura
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 609 } # Bulgar
							condition = { type = area value = 579 } # Khoper
							condition = { type = area value = 612 } # Urals
							condition = { type = area value = 617 } # Samara
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 612 } } # Urals
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 399 } # Kama
							condition = { type = area value = 609 } # Bulgar
							condition = { type = area value = 612 } # Urals
							condition = { type = area value = 617 } # Samara
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 617 } } # Samara
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 609 } # Bulgar
							condition = { type = area value = 612 } # Urals
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 617 } # Samara
							condition = { type = area value = 618 } # Khazaks
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 618 } } # Khazaks
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 617 } # Samara
							condition = { type = area value = 618 } # Khazaks
							condition = { type = area value = 623 } # Ustyurt
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = middle_east }
				condition = { type = capital condition = { type = region value = middle_east } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 618 } } # Khazaks
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 617 } # Samara
							condition = { type = area value = 618 } # Khazaks
							condition = { type = area value = 623 } # Ustyurt
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 618 } # Khazaks
							condition = { type = area value = 623 } # Ustyurt
							condition = { type = area value = 626 } # Karakumy
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 626 } } # Karakumy
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 623 } # Ustyurt
							condition = { type = area value = 626 } # Karakumy
							condition = { type = area value = 630 } # Elburz
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 630 } } # Elburz
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 626 } # Karakumy
							condition = { type = area value = 630 } # Elburz
							condition = { type = area value = 635 } # Salt Desert
							condition = { type = area value = 664 } # Zagros
							condition = { type = area value = 687 } # Kurdistan
							condition = { type = area value = 670 } # Armenia
							condition = { type = area value = 668 } # Kura
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 630 } # Elburz
							condition = { type = area value = 635 } # Salt Desert
							condition = { type = area value = 664 } # Zagros
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 664 } } # Zagros
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 630 } # Elburz
							condition = { type = area value = 635 } # Salt Desert
							condition = { type = area value = 664 } # Zagros
							condition = { type = area value = 645 } # Mesopotamia
							condition = { type = area value = 687 } # Kurdistan
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 664 } # Zagros
							condition = { type = area value = 645 } # Mesopotamia
							condition = { type = area value = 687 } # Kurdistan
							condition = { type = area value = 650 } # Ad Dahna
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 701 } # Armenia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 645 } # Mesopotamia
							condition = { type = area value = 650 } # Ad Dahna
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 668 } } # Kura
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 673 } # Caucasus
							condition = { type = area value = 670 } # Armenia
							condition = { type = area value = 668 } # Kura
							condition = { type = area value = 630 } # Elburz
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 670 } } # Armenia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 673 } # Caucasus
							condition = { type = area value = 670 } # Armenia
							condition = { type = area value = 668 } # Kura
							condition = { type = area value = 630 } # Elburz
							condition = { type = area value = 645 } # Mesopotamia
							condition = { type = area value = 705 } # Weird Shit
							condition = { type = area value = 707 } # Taurus
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 737 } # Anatolia
							condition = { type = area value = 687 } # Kurdistan
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 600 } } # Caucasus
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 598 } # Kuban
							condition = { type = area value = 602 } # Caucasus
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 672 } # Armenia
							condition = { type = area value = 669 } # Kura
							condition = { type = area value = 705 } # Weird Shit
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 608 } } # Depression
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 598 } # Kuban
							condition = { type = area value = 602 } # Caucasus
							condition = { type = area value = 608 } # Depression
							condition = { type = area value = 563 } # Don
							condition = { type = area value = 609 } # Bulgar
							condition = { type = area value = 617 } # Samara
							condition = { type = area value = 618 } # Khazaks
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 630 } # Elburz
							condition = { type = area value = 664 } # Zagros
							condition = { type = area value = 645 } # Mesopotamia
							condition = { type = area value = 687 } # Kurdistan
							condition = { type = area value = 670 } # Armenia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 645 } # Mesopotamia
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 670 } # Armenia
							condition = { type = area value = 707 } # Taurus
							condition = { type = area value = 718 } # Al Hijaz
							condition = { type = area value = 724 } # Jordan
							condition = { type = area value = 762 } # Phoenicia
							condition = { type = area value = 783 } # Sinai
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 602 } # Caucasus
							condition = { type = area value = 672 } # Armenia
							condition = { type = area value = 738 } # Anatolia
							condition = { type = area value = 705 } # Weird Shit
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 707 } } # Taurus
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 670 } # Armenia
							condition = { type = area value = 707 } # Taurus
							condition = { type = area value = 762 } # Phoenicia
							condition = { type = area value = 738 } # Anatolia
							condition = { type = area value = 756 } # Cyprus
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 718 } # Al Hijaz
							condition = { type = area value = 783 } # Sinai
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 724 } } # Jordan
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 724 } # Jordan
							condition = { type = area value = 783 } # Sinai
							condition = { type = area value = 762 } # Phoenicia
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = asia_minor }
				condition = { type = capital condition = { type = region value = asia_minor } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 738 } } # Anatolia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 705 } # Weird Shit
							condition = { type = area value = 670 } # Armenia
							condition = { type = area value = 707 } # Taurus
							condition = { type = area value = 738 } # Anatolia
							condition = { type = area value = 744 } # Ionia
							condition = { type = area value = 496 } # Maritsa
							condition = { type = area value = 483 } # Cyclades
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 744 } } # Ionia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 738 } # Anatolia
							condition = { type = area value = 744 } # Ionia
							condition = { type = area value = 496 } # Maritsa
							condition = { type = area value = 483 } # Cyclades
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 707 } } # Taurus
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 670 } # Armenia
							condition = { type = area value = 707 } # Taurus
							condition = { type = area value = 762 } # Phoenicia
							condition = { type = area value = 738 } # Anatolia
							condition = { type = area value = 756 } # Cyprus
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 756 } } # Cyprus
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 707 } # Taurus
							condition = { type = area value = 762 } # Phoenicia
							condition = { type = area value = 756 } # Cyprus
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 724 } # Jordan
							condition = { type = area value = 707 } # Taurus
							condition = { type = area value = 762 } # Phoenicia
							condition = { type = area value = 756 } # Cyprus
							condition = { type = area value = 780 } # Sinai
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 724 } } # Jordan
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 724 } # Jordan
							condition = { type = area value = 783 } # Sinai
							condition = { type = area value = 762 } # Phoenicia
						} } } }
					}
				}
			}
			condition = { type = and
				condition = { type = region value = north_africa }
				condition = { type = capital condition = { type = region value = north_africa } }
				condition = { type = or
					condition = { type = and
						condition = { type = capital condition = { type = area value = 780 } } # Sinai
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 724 } # Jordan
							condition = { type = area value = 783 } # Sinai
							condition = { type = area value = 762 } # Phoenicia
							condition = { type = area value = 692 } # Syrian Desert
							condition = { type = area value = 721 } # Al Hijaz
							condition = { type = area value = 789 } # Delta
							condition = { type = area value = 790 } # Nubia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 790 } } # Nubia
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 783 } # Sinai
							condition = { type = area value = 789 } # Delta
							condition = { type = area value = 790 } # Nubia
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 789 } } # Delta
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 783 } # Sinai
							condition = { type = area value = 789 } # Delta
							condition = { type = area value = 790 } # Nubia
							condition = { type = area value = 804 } # Qattara
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 804 } } # Qattara
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 789 } # Delta
							condition = { type = area value = 804 } # Qattara
							condition = { type = area value = 805 } # Cyrenaica
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 804 } # Qattara
							condition = { type = area value = 805 } # Cyrenaica
							condition = { type = area value = 810 } # Tripolitania
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 805 } # Cyrenaica
							condition = { type = area value = 810 } # Tripolitania
							condition = { type = area value = 815 } # Carthago
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = province value = 812 } } # Malta
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 339 } # Sicilia
							condition = { type = area value = 805 } # Cyrenaica
							condition = { type = area value = 810 } # Tripolitania
							condition = { type = area value = 815 } # Carthago
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 815 } } # Carthago
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 810 } # Tripolitania
							condition = { type = area value = 815 } # Carthago
							condition = { type = area value = 821 } # Atlas
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 821 } } # Atlas
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 815 } # Carthago
							condition = { type = area value = 821 } # Atlas
							condition = { type = area value = 829 } # Berbers
							condition = { type = area value = 831 } # Algiers
							condition = { type = area value = 837 } # Haut Atlas
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 829 } } # Berbers
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 821 } # Atlas
							condition = { type = area value = 829 } # Berbers
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 827 } } # Baleares
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 827 } # Baleares
							condition = { type = area value = 171 } # Sierra Nevada
							condition = { type = area value = 174 } # Ebro
							condition = { type = area value = 204 } # Ribbaroja
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 831 } } # Algiers
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 821 } # Atlas
							condition = { type = area value = 831 } # Algiers
							condition = { type = area value = 837 } # Haut Atlas
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 821 } # Atlas
							condition = { type = area value = 831 } # Algiers
							condition = { type = area value = 837 } # Haut Atlas
							condition = { type = area value = 839 } # Marocco
							condition = { type = area value = 846 } # Sahara
							condition = { type = area value = 848 } # Canaries
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = area value = 839 } } # Marocco
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 837 } # Haut Atlas
							condition = { type = area value = 839 } # Marocco
						} } } }
					}
					condition = { type = and
						condition = { type = capital condition = { type = or
							condition = { type = area value = 846 } # Sahara
							condition = { type = area value = 848 } # Canaries
						} }
						condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
							condition = { type = area value = 837 } # Haut Atlas
							condition = { type = area value = 846 } # Sahara
							condition = { type = area value = 848 } # Canaries
						} } } }
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 600

		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = liege condition = { type = not value = { type = religion value = catholic } } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = liege condition = { type = not value = { type = religion value = orthodox } } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege condition = { type = not value = { type = religion value = pagan } } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege condition = { type = not value = { type = religion value = moslem } } }
				}
			}
			factor = 0.1
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = culture value = lappish }
					condition = { type = liege condition = { type = not value = { type = culture value = lappish } } }
				}
				condition = { type = and
					condition = { type = culture value = norwegian }
					condition = { type = liege condition = { type = not value = { type = culture value = norwegian } } }
				}
				condition = { type = and
					condition = { type = culture value = swedish }
					condition = { type = liege condition = { type = not value = { type = culture value = swedish } } }
				}
				condition = { type = and
					condition = { type = culture value = scottish }
					condition = { type = liege condition = { type = not value = { type = culture value = scottish } } }
				}
				condition = { type = and
					condition = { type = culture value = saxon }
					condition = { type = liege condition = { type = not value = { type = culture value = saxon } } }
				}
				condition = { type = and
					condition = { type = culture value = irish }
					condition = { type = liege condition = { type = not value = { type = culture value = irish } } }
				}
				condition = { type = and
					condition = { type = culture value = welsh }
					condition = { type = liege condition = { type = not value = { type = culture value = welsh } } }
				}
				condition = { type = and
					condition = { type = culture value = english }
					condition = { type = liege condition = { type = not value = { type = culture value = english } } }
				}
				condition = { type = and
					condition = { type = culture value = finnish }
					condition = { type = liege condition = { type = not value = { type = culture value = finnish } } }
				}
				condition = { type = and
					condition = { type = culture value = prussian }
					condition = { type = liege condition = { type = not value = { type = culture value = prussian } } }
				}
				condition = { type = and
					condition = { type = culture value = lettigallish }
					condition = { type = liege condition = { type = not value = { type = culture value = lettigallish } } }
				}
				condition = { type = and
					condition = { type = culture value = lithuanian }
					condition = { type = liege condition = { type = not value = { type = culture value = lithuanian } } }
				}
				condition = { type = and
					condition = { type = culture value = german }
					condition = { type = liege condition = { type = not value = { type = culture value = german } } }
				}
				condition = { type = and
					condition = { type = culture value = dutch }
					condition = { type = liege condition = { type = not value = { type = culture value = dutch } } }
				}
				condition = { type = and
					condition = { type = culture value = frankish }
					condition = { type = liege condition = { type = not value = { type = culture value = frankish } } }
				}
				condition = { type = and
					condition = { type = culture value = norman }
					condition = { type = liege condition = { type = not value = { type = culture value = norman } } }
				}
				condition = { type = and
					condition = { type = culture value = basque }
					condition = { type = liege condition = { type = not value = { type = culture value = basque } } }
				}
				condition = { type = and
					condition = { type = culture value = castillan }
					condition = { type = liege condition = { type = not value = { type = culture value = castillan } } }
				}
				condition = { type = and
					condition = { type = culture value = catalan }
					condition = { type = liege condition = { type = not value = { type = culture value = catalan } } }
				}
				condition = { type = and
					condition = { type = culture value = italian }
					condition = { type = liege condition = { type = not value = { type = culture value = italian } } }
				}
				condition = { type = and
					condition = { type = culture value = latin }
					condition = { type = liege condition = { type = not value = { type = culture value = latin } } }
				}
				condition = { type = and
					condition = { type = culture value = hungarian }
					condition = { type = liege condition = { type = not value = { type = culture value = hungarian } } }
				}
				condition = { type = and
					condition = { type = culture value = southslavic }
					condition = { type = liege condition = { type = not value = { type = culture value = southslavic } } }
				}
				condition = { type = and
					condition = { type = culture value = russian }
					condition = { type = liege condition = { type = not value = { type = culture value = russian } } }
				}
				condition = { type = and
					condition = { type = culture value = greek }
					condition = { type = liege condition = { type = not value = { type = culture value = greek } } }
				}
				condition = { type = and
					condition = { type = culture value = georgian }
					condition = { type = liege condition = { type = not value = { type = culture value = georgian } } }
				}
				condition = { type = and
					condition = { type = culture value = armenian }
					condition = { type = liege condition = { type = not value = { type = culture value = armenian } } }
				}
				condition = { type = and
					condition = { type = culture value = alan }
					condition = { type = liege condition = { type = not value = { type = culture value = alan } } }
				}
				condition = { type = and
					condition = { type = culture value = cuman }
					condition = { type = liege condition = { type = not value = { type = culture value = cuman } } }
				}
				condition = { type = and
					condition = { type = culture value = pecheneg }
					condition = { type = liege condition = { type = not value = { type = culture value = pecheneg } } }
				}
				condition = { type = and
					condition = { type = culture value = turkish }
					condition = { type = liege condition = { type = not value = { type = culture value = turkish } } }
				}
				condition = { type = and
					condition = { type = culture value = muslim }
					condition = { type = liege condition = { type = not value = { type = culture value = muslim } } }
				}
				condition = { type = and
					condition = { type = culture value = persian }
					condition = { type = liege condition = { type = not value = { type = culture value = persian } } }
				}
				condition = { type = and
					condition = { type = culture value = mongol }
					condition = { type = liege condition = { type = not value = { type = culture value = mongol } } }
				}
				condition = { type = and
					condition = { type = culture value = polish }
					condition = { type = liege condition = { type = not value = { type = culture value = polish } } }
				}
				condition = { type = and
					condition = { type = culture value = bohemian }
					condition = { type = liege condition = { type = not value = { type = culture value = bohemian } } }
				}
				condition = { type = and
					condition = { type = culture value = portuguese }
					condition = { type = liege condition = { type = not value = { type = culture value = portuguese } } }
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.9 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.6 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.3 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.1 } }
			factor = 0.1
		}
		modifier = {
			condition = { type = martial value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = martial value = 13 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 13 }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = valorous }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = deceitful }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = honest }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = not value = { type = trait value = heretic } } }
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 0.25
		}
		modifier = {
			condition = { type = father
				condition = { type = ruler }
				condition = { type = is_independent }
				condition = { type = or
					condition = { type = duchy }
					condition = { type = kingdom }
				}
			}
			factor = 10.0
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = trait value = pneumonia }
					condition = { type = trait value = leper }
					condition = { type = trait value = plagueinfested }
					condition = { type = trait value = maniac }
					condition = { type = trait value = schizofrenia }
					condition = { type = trait value = kinslayer }
					condition = { type = trait value = excommunicated }
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = has_law value = { popular_law = yes } }
					condition = { type = has_law value = { royal_preorgatory_law = yes } }
				}
			}
			factor = 0.66
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { feudal_contract_law = yes } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { elective_law = yes } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = year value = 1150 }
			factor = 1.25
		}
		modifier = {
			condition = { type = year value = 1250 }
			factor = 1.25
		}
		modifier = {
			condition = { type = year value = 1350 }
			factor = 1.25
		}
		modifier = {
			condition = { type = liege condition = { type = atwar } }
			factor = 0.5
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = germany }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = region value = north_africa } } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = asia_minor }
				condition = { type = region value = middle_east }
				condition = { type = region value = balkan }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = russia }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = north_africa }
				condition = { type = region value = balkan }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = spain }
				condition = { type = region value = germany }
				condition = { type = region value = italy }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = france }
				condition = { type = region value = italy }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = russia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = france }
				condition = { type = region value = britain }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = region value = middle_east } } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = spain }
				condition = { type = region value = britain }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = france }
				condition = { type = region value = italy }
				condition = { type = region value = netherlands }
				condition = { type = region value = balkan }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = region value = britain } } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
				condition = { type = region value = spain }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = france }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = spain }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = asia_minor }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = russia }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = region value = germany } } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = france }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 0.9
		}
	}

	action_a = {
		ai_chance = 99
		effect = { type = trigger for = liege value = 6107 }
		effect = { type = add_title_claim value = liege }
		effect = { type = independence }
		effect = { type = loyalty value = 1.0 }
		effect = { type = prestige value = 50 }
	}
	action_b = {
		ai_chance = 1
		effect = { type = loyalty value = 0.2 }
		effect = { type = prestige value = -20 }
		effect = { type = piety value = 20 }
		effect = { type = add_trait value = modest }
	}
}

# Reaction event for liege

character_event = {
	id = 6107

	picture = "event_intrigue"

	action_a = {
		effect = { type = prestige value = 50 }
		effect = { type = piety value = -25 }
		effect = { type = random chance = 25
			effect = { type = add_trait value = vengeful }
		}
	}
	action_b = {
		effect = { type = prestige scale = -25 }
		effect = { type = piety value = 25 }
		effect = { type = random chance = 25
			effect = { type = add_trait value = forgiving }
		}
	}
}

######################################################################
# "Manzikert event", some vassals can bring lots of trouble when taking part in your army

character_event = {
	id = 6157

	picture = "event_battle"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = command }
		condition = { type = not value = { type = atwar } }
		condition = { type = or
			condition = { type = trait value = intestinal_worm }
			condition = { type = trait value = deceitful }
			condition = { type = not value = { type = loyalty value = 0.5 } }
		}
		condition = { type = liege condition = { type = and
			condition = { type = atwar }
			condition = { type = is_independent }
		} }
	}

	mean_time_to_happen = {
		months = 800

		modifier = {
			condition = { type = combat }
			factor = 0.1
		}
		modifier = {
			condition = { type = siege }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 3 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = intrigue value = 6 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 8 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 10 }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = martial value = 3 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = martial value = 6 }
			factor = 0.8
		}
		modifier = {
			condition = { type = martial value = 8 }
			factor = 0.8
		}
		modifier = {
			condition = { type = martial value = 10 }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = deceiful }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = intestinal_worm }
			factor = 0.5
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = vengeful }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.40 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.30 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.20 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.10 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 3 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 7 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 9 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 11 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 3 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 7 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 9 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 11 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = trait value = trusting }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = trait value = stutter }
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = trait value = suspicious }
			}
			factor = 1.2
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = command } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = enemy_same_religion }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = ai }
			}
			factor = 10
		}
	}

	action_a = {
		ai_chance = 80
		effect = { type = loyalty value = -0.3 }
		effect = { type = add_trait value = intestinal_worm } #in case you don't a;ready have it
		effect = { type = trigger for = liege value = 6158 }
		effect = { type = random chance = 33
			effect = { type = trigger for = liege value = 6454 }
			effect = { type = add_title_claim value = liege }
			effect = { type = declare_war value = liege }
			effect = { type = remove_trait value = intestinal_worm } #clear it if you're DOWing
			effect = { type = prestige value = 100 }
			effect = { type = loyalty value = 1.0 }
		}
	}
	action_b = {
		ai_chance = 20
		effect = { type = loyalty value = 0.2 }
	}
}

# Reaction event for liege

character_event = {
	id = 6158

	picture = "event_battle"

	immidiate = {
		effect = { type = remove_regiment }
		effect = { type = remove_regiment }
		effect = { type = random chance = 50
			effect = { type = remove_regiment }
		}
		effect = { type = random chance = 50
			effect = { type = remove_regiment }
		}
		effect = { type = random chance = 25
			effect = { type = remove_regiment }
		}
		effect = { type = random chance = 25
			effect = { type = remove_regiment }
		}
		effect = { type = random chance = 10
			effect = { type = remove_regiment }
		}
		effect = { type = random chance = 10
			effect = { type = remove_regiment }
		}
	}
}

# The following moved here from the Law_events.txt file

#############################################
# Succession in the Moslem and Pagan Realms #
#############################################
# This set of events by MrT
# Note that these are balancing events and are not intended to represent historical fact


# Change law to use as trigger condition for the rest of the series

character_event = { # There is trouble brewing in the wind.

	id = 6500
	picture = "event_default"

	trigger = {
		condition = { type = ruler }
		condition = { type = ai }
		condition = { type = not value = { type = religion value = catholic } }
		condition = { type = not value = { type = religion value = orthodox } }
		condition = { type = not value = { type = has_law value = { semisalic_gavelkind_law = yes } } }
		condition = { type = not value = { type = has_law value = { salic_gavelkind_law = yes } } }
		condition = { type = not value = { type = efficiency value = 1.0 } }
		condition = { type = not value = { type = title value = GOLD } }
		condition = { type = not value = { type = title value = ILKH } }
	}

	mean_time_to_happen = {
		months = 240

		modifier = {
			condition = { type = not value = { type = efficiency value = 0.9 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.7 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.5 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.3 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.1 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = kingdom }
			factor = 0.5
		}
		modifier = {
			condition = { type = county }
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = stewardship value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = stewardship value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = stewardship value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = stewardship value = 8 }
			factor = 1.1
		}
		modifier = {
			condition = { type = stewardship value = 10 }
			factor = 1.1
		}
		modifier = {
			condition = { type = stewardship value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = age  value = 15 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = age value = 35 }
			factor = 0.8
		}
		modifier = {
			condition = { type = age value = 45 }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = arbitrary }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = cruel }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = just }
			factor = 1.2
		}
		modifier = {
			condition = { type = trait value = merciful }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = valorous }
			factor = 1.2
		}
		modifier = {
			condition = { type = region value = Spain }
			factor = 0.85
		}
		modifier = {
			condition = { type = region value = Middle_East }
			factor = 2
		}
		modifier = {
			condition = { type = region value = Asia_Minor }
			factor = 0.85
		}
		modifier = {
			condition = { type = region value = North_Africa }
			factor = 1.5
		}
		modifier = {
			condition = { type = title value = SELJ }
			condition = { type = not value = { type = year value = 1150 } }
			factor = 5
		}
		modifier = {
			condition = { type = title value = FATI }
			condition = { type = not value = { type = year value = 1150 } }
			factor = 3
		}
		modifier = {
			condition = { type = title value = AYYU }
			condition = { type = year value = 1150 }
			condition = { type = not value = { type = year value = 1300 } }
			factor = 4
		}
		modifier = {
			condition = { type = title value = MAML }
			condition = { type = year value = 1300 }
			factor = 5
		}
		modifier = {
			condition = { type = title value = OTTO }
			condition = { type = year value = 1300 }
			factor = 5
		}
		modifier = {
			condition = { type = title value = ABBA }
			condition = { type = year value = 1300 }
			factor = 2
		}
	}

	action_a = { #The realm is in for trouble
		effect = { type = set_law value = semisalic_gavelkind_law }
	}
}

#Arranging for there to be enough heirs for things to get messy when ruler dies - part 1

character_event = { #A child is born who may someday come to rule

	id = 6501
	picture = "event_default"

	trigger = {
		condition = { type = ruler }
		condition = { type = has_law value = { semisalic_gavelkind_law = yes } }
		condition = { type = ai }
		condition = { type = not value = { type = religion value = catholic } }
		condition = { type = not value = { type = religion value = orthodox } }
		condition = { type = not value = { type = efficiency value = 1.0 } }
	}

	mean_time_to_happen = {
		months = 60

		modifier = {
			condition = { type = not value = { type = is_married } }
			condition = {
				type = not
				value = { 
					type = any_child
					condition = { type = age value = 5 }
				}
			}
			factor = 0.2
		}
		modifier = {
			condition = { type = region value = Spain }
			factor = 0.75
		}
		modifier = {
			condition = { type = region value = Middle_East }
			factor = 3
		}
		modifier = {
			condition = { type = region value = Asia_Minor }
			factor = 1.1
		}
		modifier = {
			condition = { type = region value = North_Africa }
			factor = 2
		}
	}

	action_a = { #Maybe some day!
		effect = { type = create_courtier value = bastard }
		effect = { type = random chance = 33
			effect = { type = create_courtier value = bastard } #twins!
		}
	}
}

#Arranging for there to be enough heirs for things to get messy when ruler dies - part 2

character_event = { #I shall place myself within the line of succession

	id = 6502
	picture = "event_default"

	trigger = {
		condition = { type = trait value = bastard }
		condition = { type = not value = { type = religion value = catholic } }
		condition = { type = not value = { type = religion value = orthodox } }
		condition = { type = not value = { type = ruler } }
		condition = {
			type = ruler_csc
			condition = { 
				type = and
				condition = { type = not value = { type = religion value = catholic } }
				condition = { type = not value = { type = religion value = orthodox } }
			}
		}
	}

	mean_time_to_happen = {
		months = 12
	}

	action_a = { #I shall be a mediocre ruler
		ai_chance = 34
		effect = { type = remove_trait value = bastard }
		effect = { type = health value = 3 }
		effect = { type = fertility value = 1 }
		effect = { type = diplomacy value = 1 }
		effect = { type = stewardship value = 1 }
		effect = { type = martial value = 1 }
		effect = { type = intrigue value = 1 }
		effect = { type = random chance = 33 effect = { type = diplomacy value = 1 } }
		effect = { type = random chance = 33 effect = { type = stewardship value = 1 } }
		effect = { type = random chance = 33 effect = { type = martial value = 1 } }
		effect = { type = random chance = 33 effect = { type = intrigue value = 1 } }
	}
	action_b = { #I shall be a good ruler
		ai_chance = 33
		effect = { type = remove_trait value = bastard }
		effect = { type = health value = 5 }
		effect = { type = fertility value = 2 }
		effect = { type = diplomacy value = 2 }
		effect = { type = stewardship value = 2 }
		effect = { type = martial value = 2 }
		effect = { type = intrigue value = 2 }
		effect = { type = random chance = 66 effect = { type = diplomacy value = 1 } }
		effect = { type = random chance = 66 effect = { type = stewardship value = 1 } }
		effect = { type = random chance = 66 effect = { type = martial value = 1 } }
		effect = { type = random chance = 66 effect = { type = intrigue value = 1 } }
		effect = { type = random chance = 33 effect = { type = diplomacy value = 2 } }
		effect = { type = random chance = 33 effect = { type = stewardship value = 2 } }
		effect = { type = random chance = 33 effect = { type = martial value = 2 } }
		effect = { type = random chance = 33 effect = { type = intrigue value = 2 } }
	}
	action_c = { #I shall be a remembered for centuries to come!
		ai_chance = 33
		effect = { type = remove_trait value = bastard }
		effect = { type = health value = 7 }
		effect = { type = fertility value = 3 }
		effect = { type = diplomacy value = 3 }
		effect = { type = stewardship value = 3 }
		effect = { type = martial value = 3 }
		effect = { type = intrigue value = 3 }
		effect = { type = random chance = 80 effect = { type = diplomacy value = 1 } }
		effect = { type = random chance = 80 effect = { type = stewardship value = 1 } }
		effect = { type = random chance = 80 effect = { type = martial value = 1 } }
		effect = { type = random chance = 80 effect = { type = intrigue value = 1 } }
		effect = { type = random chance = 50 effect = { type = diplomacy value = 2 } }
		effect = { type = random chance = 50 effect = { type = stewardship value = 2 } }
		effect = { type = random chance = 50 effect = { type = martial value = 2 } }
		effect = { type = random chance = 50 effect = { type = intrigue value = 2 } }
		effect = { type = random chance = 25 effect = { type = diplomacy value = 3 } }
		effect = { type = random chance = 25 effect = { type = stewardship value = 3 } }
		effect = { type = random chance = 25 effect = { type = martial value = 3 } }
		effect = { type = random chance = 25 effect = { type = intrigue value = 3 } }
		effect = { type = random chance = 10 effect = { type = diplomacy value = 4 } }
		effect = { type = random chance = 10 effect = { type = stewardship value = 4 } }
		effect = { type = random chance = 10 effect = { type = martial value = 4 } }
		effect = { type = random chance = 10 effect = { type = intrigue value = 4 } }
		effect = { type = random chance = 50 effect = { type = health value = 3 } }
		effect = { type = random chance = 50 effect = { type = fertility value = 3 } }
	}
}

# Nudge the succession for rulers with the audacity to not die soon enough :D

character_event = { #An heir tires of waiting for his turn on the throne and takes matters into his own hands

	id = 6503
	picture = "event_default"

	trigger = {
		condition = { type = ruler }
		condition = { type = has_law value = { semisalic_gavelkind_law = yes } }
		condition = { type = ai }
		condition = { type = not value = { type = religion value = catholic } }
		condition = { type = not value = { type = religion value = orthodox } }
		condition = { type = not value = { type = efficiency value = 1.0 } }
		condition = {
			type = any_child
			condition = { type = gender value = male }
			condition = {type = intrigue value = 4 }
		}
	}

	mean_time_to_happen = {
		months = 120

		modifier = {
			condition = { type = region value = Spain }
			factor = 0.5
		}
		modifier = {
			condition = { type = region value = Middle_East }
			factor = 2
		}
		modifier = {
			condition = { type = region value = Asia_Minor }
			factor = 0.85
		}
		modifier = {
			condition = { type = region value = North_Africa }
			factor = 1.5
		}
		modifier = {
			condition = { type = atwar }
			factor = 5
		}
#more modifiers to come
	}

	action_a = { #Goodbye daddy!
		effect = { type = death }
	}
}

# Encourage fracturing of large realms

character_event = { #My liege is too weak to compel my loyalty

	id = 6504
	picture = "event_default"

	trigger = {
		condition = { type = ai }
		condition = { type = ruler }
		condition = { type = not value = { type = is_independent } }
		condition = {
			type = realm_ruler
			condition = {
				type = and
				condition = { type = has_law value = { semisalic_gavelkind_law = yes } }
				condition = { type = not value = { type = religion value = catholic } }
				condition = { type = not value = { type = religion value = orthodox } }
			}
		}
	}

	mean_time_to_happen = {
		months = 150

		modifier = {
			condition = { type = region value = Spain }
			factor = 0.75
		}
		modifier = {
			condition = { type = region value = Middle_East }
			factor = 2
		}
		modifier = {
			condition = { type = region value = Asia_Minor }
			factor = 1.15
		}
		modifier = {
			condition = { type = region value = North_Africa }
			factor = 1.75
		}
		modifier = {
			condition = { type = atwar }
			factor = 3
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 2 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 4 } }
			factor = 1.1
		}
		modifier = {
			condition = { type = intrigue value = 6 }
			factor = 0.9
		}
		modifier = {
			condition = { type = intrigue value = 9 }
			factor = 0.75
		}
		modifier = {
			condition = { type = intrigue value = 12 }
			factor = 0.75
		}
		modifier = {
			condition = { type = realm_ruler
				condition = { type = not value = { type = intrigue value = 4 } }
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = realm_ruler
				condition = { type = not value = { type = intrigue value = 7 } }
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = realm_ruler
				condition = { type = intrigue value = 10 }
			}
			factor = 1.2
		}
		modifier = {
			condition = { type = realm_ruler
				condition = { type = intrigue value = 13 }
			}
			factor = 1.2
		}

	}

	action_a = { #I will rule in my own right!
		effect = { type = independence }
		effect = { type = loyalty value = 1.0 } #to reset it
	}
}

# Realm returns to a period of stability

character_event = { #The time of trouble has finally ended

	id = 6505
	picture = "event_default"

	trigger = {
		condition = { type = ruler }
		condition = { type = ai }
		condition = { type = not value = { type = religion value = catholic } }
		condition = { type = not value = { type = religion value = orthodox } }
		condition = { type = has_law value = { semisalic_gavelkind_law = yes } }
		condition = { type = efficiency value = 1.0 }
	}

	mean_time_to_happen = {
		months = 36

		modifier = {
			condition = { type = region value = Spain }
			factor = 1.5
		}
		modifier = {
			condition = { type = region value = Middle_East }
			factor = 0.75
		}
		modifier = {
			condition = { type = region value = Asia_Minor }
			factor = 1.25
		}
		modifier = {
			condition = { type = region value = North_Africa }
			factor = 0.85
		}
		modifier = {
			condition = { type = atwar }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 2 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 4 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = intrigue value = 6 }
			factor = 0.95
		}
		modifier = {
			condition = { type = intrigue value = 9 }
			factor = 0.85
		}
		modifier = {
			condition = { type = intrigue value = 12 }
			factor = 0.85
		}
		modifier = {
			condition = { type = title value = SELJ }
			condition = { type = not value = { type = year value = 1150 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = title value = FATI }
			condition = { type = not value = { type = year value = 1150 } }
			factor = 0.75
		}
		modifier = {
			condition = { type = title value = AYYU }
			condition = { type = year value = 1150 }
			condition = { type = not value = { type = year value = 1300 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = title value = OTTO }
			condition = { type = year value = 1300 }
			factor = 0.5
		}
		modifier = {
			condition = { type = title value = MAML }
			condition = { type = year value = 1300 }
			factor = 0.75
		}
		modifier = {
			condition = { type = title value = ABBA }
			condition = { type = year value = 1300 }
			factor = 0.75
		}

	}

	action_a = { # Allah Akbar! (or regional equivalent)
		ai_chance = 50
		modifier = {
			condition = { type = region value = Spain }
			factor = 2
		}
		modifier = {
			condition = { type = region value = Middle_East }
			factor = 1.5
		}
		effect = { type = set_law value = semisalic_primogeniture_law }
		effect = { type = prestige value = 250 }
		effect = { type = gold scale = 5 } #wedding gifts
		effect = { type = add_title_claim value = best_neighbor }
		effect = { type = add_title_claim value = worst_neighbor }
	}
	action_b = { # Allah Akbar! (or regional equivalent)
		ai_chance = 50
		modifier = {
			condition = { type = region value = North_Africa }
			factor = 1.5
		}
		modifier = {
			condition = { type = region value = Asia_Minor }
			factor = 1.25
		}
		effect = { type = set_law value = semisalic_consanguinity_law }
		effect = { type = prestige value = 250 }
		effect = { type = gold scale = 5 } #wedding gifts
		effect = { type = add_title_claim value = best_neighbor }
		effect = { type = add_title_claim value = worst_neighbor }
	}
}

#The following moved here from province_power_events.txt file


###############################################
# Wide-spread demesne is difficult to control #
###############################################

province_event = { #It is very difficult to maintain control over the population of a province when you are so far away.

	id = 5416
	picture = "event_town"

	trigger = {
		#this trigger limit is a temporary fix for the issue of the event triggering when human-controlled ruler is at sea
		#needs to be replaced in future with area exclusions for sea zones in each of the areas
		condition = { type = and
			condition = { type = not value = { type = ai } }
			condition = { type = owner
				condition = { type = location
					condition = { type = or
						condition = { type = terrain value = Ocean }
						condition = { type = terrain value = River }			
						condition = { type = terrain value = Sea }
					}
				}
			}
		}
		#end of temporary trigger condition

		condition = { type = not value = { type = has_province_effect value = { revolt = yes } } }
		#is remote...
		condition = { type = not value = { type = capital value = yes } }
		condition = { type = or
			condition = { type = and
				condition = { type = area value = 1 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 1 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 1 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 10 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 10 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 10 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 22 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 22 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 22 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 44 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 57 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 64 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 82 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 87 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 93 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 82 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 82 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 101 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 109 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 109 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 109 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 215 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 215 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 112 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 93 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 93 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 127 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 172 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 203 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 203 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 178 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 180 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 183 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 189 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 193 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 193 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 193 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 183 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 183 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 201 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 189 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 189 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 203 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = province value = 212 } }
								condition = { type = not value = { type = province value = 220 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = province value = 212 } }
								condition = { type = not value = { type = province value = 220 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 215 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 217 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = province value = 239 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = province value = 239 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 223 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = province value = 205 } }
								condition = { type = not value = { type = province value = 206 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = province value = 205 } }
								condition = { type = not value = { type = province value = 206 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 231 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 245 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 251 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = province value = 257 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 314 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = province value = 257 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 314 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 270 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 287 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 298 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = province value = 266 } }
								condition = { type = not value = { type = province value = 305 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = province value = 266 } }
								condition = { type = not value = { type = province value = 305 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 308 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = province value = 266 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = province value = 266 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 310 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = province value = 121 } }
								condition = { type = not value = { type = province value = 120 } }
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = province value = 302 } }
								condition = { type = not value = { type = province value = 303 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = province value = 121 } }
								condition = { type = not value = { type = province value = 120 } }
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = province value = 302 } }
								condition = { type = not value = { type = province value = 303 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 314 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 320 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 448 } }
								condition = { type = not value = { type = province value = 458 } }
								condition = { type = not value = { type = province value = 459 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 448 } }
								condition = { type = not value = { type = province value = 458 } }
								condition = { type = not value = { type = province value = 459 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 325 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 325 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 325 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 330 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 335 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 335 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 335 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 335 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 339 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 335 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 339 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 340 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 340 } }
								condition = { type = not value = { type = province value = 338 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 340 } }
								condition = { type = not value = { type = province value = 338 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 375 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 381 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 413 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 413 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 393 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 400 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 393 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 393 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 406 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 413 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 375 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 375 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 418 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 548 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 548 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 437 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 444 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 449 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 455 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = province value = 360 } }
								condition = { type = not value = { type = province value = 462 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = province value = 360 } }
								condition = { type = not value = { type = province value = 462 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 464 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 468 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 472 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 472 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 472 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 480 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 481 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 490 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 496 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 496 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 496 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 505 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 510 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 528 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 538 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 545 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 555 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 555 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 548 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 555 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 560 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 560 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 560 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 564 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 574 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = province value = 417 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = province value = 417 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 576 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 564 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 564 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 588 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 592 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 599 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 606 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 676 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 676 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 610 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 400 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 400 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 612 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 617 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 618 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 618 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 618 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 624 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 624 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 624 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 627 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 627 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 627 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 636 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 644 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 644 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 644 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 650 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 661 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 668 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 668 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 668 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 676 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 681 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 685 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 690 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 705 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 713 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 720 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 724 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 736 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 770 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 770 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 745 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 750 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 756 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 756 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 756 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 770 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 787 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 791 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 800 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 803 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 803 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 803 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 807 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 807 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 807 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 807 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 811 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 807 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 811 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 811 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 818 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 818 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 818 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 824 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 824 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 824 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 831 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 831 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 827 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 827 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 827 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 828 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 832 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 832 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 832 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 840 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 846 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 846 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 842 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 846 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 846 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 846 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 848 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 848 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 848 } }
							}
						}
					}
				}
			}
		}
	}

	mean_time_to_happen = {

		months = 750

		modifier = {
			condition = { type = not value = { type = same_religion } }
			factor = 0.6
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = not value = { type = ruler_religion value = catholic } }
					condition = { type = not value = { type = ruler_religion value = orthodox } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = not value = { type = ruler_religion value = orthodox } }
					condition = { type = not value = { type = ruler_religion value = catholic } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = not value = { type = ruler_religion value = moslem } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = not value = { type = ruler_religion value = pagan } }
					}
				condition = { type = and
					condition = { type = religion value = jewish }
					condition = { type = not value = { type = ruler_religion value = jewish } }
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = region value = Spain }
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = moslem }
			condition = { type = owner
				condition = { type = capital
					condition = { type = region value = Spain }
				}
				condition = { type = or
					condition = { type = is_independent }
					condition = { type = realm_ruler
						condition = { type = capital
							condition = { type = or
								condition = { type = region value = Spain }
								condition = { type = area value = 827 }
								condition = { type = area value = 824 }
								condition = { type = area value = 831 }
								condition = { type = area value = 840 }
								condition = { type = area value = 842 }
								condition = { type = area value = 846 }
								condition = { type = area value = 848 }
								condition = { type = area value = 828 }
							}
						}
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = region value = Spain }
			condition = { type = religion value = moslem }
			condition = { type = ruler_religion value = catholic }
			condition = { type = owner
				condition = { type = capital
					condition = { type = region value = Spain }
				}
				condition = { type = or
					condition = { type = is_independent }
					condition = { type = realm_ruler
						condition = { type = religion value = catholic }
					}
				}
			}
			factor = 2
		}
		modifier  = {
			condition = { type = not value = { type = ai } }
			condition = { type = owner
				condition = { type = command }
			}
			condition = { type = or
				condition = { type = and
					condition = { type = area value = 1 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 1 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 10 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 10 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 22 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 22 }
								condition = { type = area value = 64 }
								condition = { type = area value = 57 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 44 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 44 }
								condition = { type = area value = 64 }
								condition = { type = area value = 57 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 57 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 57 }
								condition = { type = area value = 44 }
								condition = { type = area value = 64 }
								condition = { type = area value = 22 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 64 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 64 }
								condition = { type = area value = 57 }
								condition = { type = area value = 22 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 82 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 82 }
								condition = { type = area value = 93 }
								condition = { type = area value = 127 }
								condition = { type = area value = 87 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 87 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 87 }
								condition = { type = area value = 82 }
								condition = { type = area value = 127 }
								condition = { type = area value = 310 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 93 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 93 }
								condition = { type = area value = 112 }
								condition = { type = area value = 127 }
								condition = { type = area value = 122 }
								condition = { type = area value = 82 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 101 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 101 }
								condition = { type = area value = 112 }
								condition = { type = area value = 109 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 109 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 109 }
								condition = { type = area value = 101 }
								condition = { type = area value = 112 }
								condition = { type = area value = 223 }
								condition = { type = area value = 217 }
								condition = { type = area value = 215 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 112 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 112 }
								condition = { type = area value = 101 }
								condition = { type = area value = 109 }
								condition = { type = area value = 217 }
								condition = { type = area value = 223 }
								condition = { type = area value = 127 }
								condition = { type = area value = 93 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 127 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 127 }
								condition = { type = area value = 82 }
								condition = { type = area value = 93 }
								condition = { type = area value = 112 }
								condition = { type = area value = 223 }
								condition = { type = area value = 245 }
								condition = { type = area value = 245 }
								condition = { type = area value = 251 }
								condition = { type = area value = 122 }
								condition = { type = area value = 310 }
								condition = { type = area value = 87 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 172 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 172 }
								condition = { type = area value = 180 }
								condition = { type = area value = 178 }
								condition = { type = area value = 189 }
								condition = { type = area value = 201 }
								condition = { type = area value = 203 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 178 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 178 }
								condition = { type = area value = 180 }
								condition = { type = area value = 183 }
								condition = { type = area value = 193 }
								condition = { type = area value = 189 }
								condition = { type = area value = 172 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 180 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 180 }
								condition = { type = area value = 183 }
								condition = { type = area value = 178 }
								condition = { type = area value = 172 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 183 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 183 }
								condition = { type = area value = 193 }
								condition = { type = area value = 178 }
								condition = { type = area value = 180 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 189 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 189 }
								condition = { type = area value = 201 }
								condition = { type = area value = 172 }
								condition = { type = area value = 178 }
								condition = { type = area value = 193 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 193 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 193 }
								condition = { type = area value = 189 }
								condition = { type = area value = 178 }
								condition = { type = area value = 183 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 201 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 201 }
								condition = { type = area value = 215 }
								condition = { type = area value = 203 }
								condition = { type = area value = 172 }
								condition = { type = area value = 189 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 203 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 203 }
								condition = { type = area value = 172 }
								condition = { type = area value = 201 }
								condition = { type = area value = 215 }
								condition = { type = province value = 212 }
								condition = { type = province value = 220 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 215 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 215 }
								condition = { type = area value = 203 }
								condition = { type = area value = 201 }
								condition = { type = area value = 109 }
								condition = { type = area value = 217 }
								condition = { type = area value = 223 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 217 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 217 }
							condition = { type = area value = 223 }
							condition = { type = area value = 215 }
							condition = { type = area value = 109 }
							condition = { type = area value = 112 }
							condition = { type = area value = 231 }
							condition = { type = province value = 239 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 223 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 223 }
								condition = { type = province value = 205 }
								condition = { type = province value = 206 }
								condition = { type = area value = 215 }
								condition = { type = area value = 217 }
								condition = { type = area value = 109 }
								condition = { type = area value = 112 }
								condition = { type = area value = 127 }
								condition = { type = area value = 245 }
								condition = { type = area value = 231 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 231 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 231 }
								condition = { type = area value = 223 }
								condition = { type = area value = 217 }
								condition = { type = area value = 245 }
								condition = { type = area value = 320 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 245 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 245 }
								condition = { type = area value = 231 }
								condition = { type = area value = 223 }
								condition = { type = area value = 127 }
								condition = { type = area value = 251 }
								condition = { type = area value = 314 }
								condition = { type = area value = 449 }
								condition = { type = area value = 455 }
								condition = { type = area value = 320 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 251 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 251 }
								condition = { type = area value = 245 }
								condition = { type = area value = 127 }
								condition = { type = area value = 122 }
								condition = { type = province value = 257 }
								condition = { type = area value = 310 }
								condition = { type = area value = 314 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 270 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 270 }
								condition = { type = area value = 287 }
								condition = { type = area value = 298 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 287 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 287 }
								condition = { type = area value = 298 }
								condition = { type = area value = 270 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 298 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 298 }
								condition = { type = area value = 270 }
								condition = { type = area value = 287 }
								condition = { type = province value = 266 }
								condition = { type = province value = 305 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 308 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 308 }
								condition = { type = area value = 528 }
								condition = { type = area value = 437 }
								condition = { type = area value = 310 }
								condition = { type = province value = 266 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 310 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 310 }
								condition = { type = area value = 308 }
								condition = { type = area value = 437 }
								condition = { type = area value = 314 }
								condition = { type = area value = 251 }
								condition = { type = province value = 121 }
								condition = { type = province value = 120 }
								condition = { type = area value = 87 }
								condition = { type = province value = 302 }
								condition = { type = province value = 303 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 314 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 314 }
								condition = { type = area value = 245 }
								condition = { type = area value = 251 }
								condition = { type = area value = 310 }
								condition = { type = area value = 437 }
								condition = { type = area value = 449 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 320 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 320 }
								condition = { type = area value = 231 }
								condition = { type = area value = 245 }
								condition = { type = area value = 455 }
								condition = { type = area value = 330 }
								condition = { type = province value = 448 }
								condition = { type = province value = 458 }
								condition = { type = province value = 459 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 325 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 325 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 330 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 330 }
								condition = { type = area value = 320 }
								condition = { type = area value = 335 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 335 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 335 }
								condition = { type = area value = 330 }
								condition = { type = province value = 339 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 340 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 340 }
								condition = { type = province value = 338 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 375 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 375 }
								condition = { type = area value = 413 }
								condition = { type = area value = 418 }
								condition = { type = area value = 528 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 381 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 381 }
								condition = { type = area value = 393 }
								condition = { type = area value = 413 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 393 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 393 }
								condition = { type = area value = 400 }
								condition = { type = area value = 406 }
								condition = { type = area value = 413 }
								condition = { type = area value = 381 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 400 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 400 }
								condition = { type = area value = 612 }
								condition = { type = area value = 610 }
								condition = { type = area value = 588 }
								condition = { type = area value = 406 }
								condition = { type = area value = 393 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 406 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 406 }
								condition = { type = area value = 413 }
								condition = { type = area value = 393 }
								condition = { type = area value = 400 }
								condition = { type = area value = 588 }
								condition = { type = area value = 574 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 413 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 413 }
								condition = { type = area value = 381 }
								condition = { type = area value = 393 }
								condition = { type = area value = 406 }
								condition = { type = area value = 574 }
								condition = { type = area value = 576 }
								condition = { type = area value = 418 }
								condition = { type = area value = 375 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 418 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 418 }
								condition = { type = area value = 528 }
								condition = { type = area value = 375 }
								condition = { type = area value = 413 }
								condition = { type = area value = 574 }
								condition = { type = area value = 576 }
								condition = { type = area value = 548 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 437 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 437 }
								condition = { type = area value = 308 }
								condition = { type = area value = 528 }
								condition = { type = area value = 449 }
								condition = { type = area value = 314 }
								condition = { type = area value = 310 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 444 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 444 }
								condition = { type = area value = 538 }
								condition = { type = area value = 505 }
								condition = { type = area value = 449 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 449 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 449 }
								condition = { type = area value = 437 }
								condition = { type = area value = 528 }
								condition = { type = area value = 538 }
								condition = { type = area value = 444 }
								condition = { type = area value = 505 }
								condition = { type = area value = 464 }
								condition = { type = area value = 455 }
								condition = { type = area value = 245 }
								condition = { type = area value = 314 }
								condition = { type = province value = 358 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 455 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 455 }
								condition = { type = area value = 320 }
								condition = { type = area value = 245 }
								condition = { type = area value = 449 }
								condition = { type = area value = 464 }
								condition = { type = province value = 360 }
								condition = { type = province value = 462 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 464 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 464 }
								condition = { type = area value = 455 }
								condition = { type = area value = 449 }
								condition = { type = area value = 505 }
								condition = { type = area value = 468 }
								condition = { type = province value = 358 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 468 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 468 }
								condition = { type = area value = 464 }
								condition = { type = area value = 505 }
								condition = { type = area value = 490 }
								condition = { type = area value = 472 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 472 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 472 }
								condition = { type = area value = 468 }
								condition = { type = area value = 490 }
								condition = { type = area value = 481 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 480 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 480 }
								condition = { type = area value = 481 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 481 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 481 }
								condition = { type = area value = 480 }
								condition = { type = area value = 472 }
								condition = { type = area value = 490 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 490 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 490 }
								condition = { type = area value = 481 }
								condition = { type = area value = 472 }
								condition = { type = area value = 468 }
								condition = { type = area value = 505 }
								condition = { type = area value = 496 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 496 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 496 }
								condition = { type = area value = 490 }
								condition = { type = area value = 505 }
								condition = { type = area value = 510 }
								condition = { type = area value = 750 }
								condition = { type = area value = 745 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 505 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 505 }
								condition = { type = area value = 468 }
								condition = { type = area value = 464 }
								condition = { type = area value = 449 }
								condition = { type = area value = 444 }
								condition = { type = area value = 538 }
								condition = { type = area value = 510 }
								condition = { type = area value = 496 }
								condition = { type = area value = 490 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 510 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 510 }
								condition = { type = area value = 496 }
								condition = { type = area value = 505 }
								condition = { type = area value = 538 }
								condition = { type = area value = 545 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 528 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 528 }
								condition = { type = area value = 375 }
								condition = { type = area value = 418 }
								condition = { type = area value = 548 }
								condition = { type = area value = 545 }
								condition = { type = area value = 538 }
								condition = { type = area value = 449 }
								condition = { type = area value = 437 }
								condition = { type = area value = 308 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 538 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 538 }
								condition = { type = area value = 510 }
								condition = { type = area value = 505 }
								condition = { type = area value = 444 }
								condition = { type = area value = 449 }
								condition = { type = area value = 528 }
								condition = { type = area value = 545 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 545 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 545 }
								condition = { type = area value = 510 }
								condition = { type = area value = 538 }
								condition = { type = area value = 528 }
								condition = { type = area value = 548 }
								condition = { type = area value = 555 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 548 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 548 }
								condition = { type = area value = 528 }
								condition = { type = area value = 418 }
								condition = { type = area value = 576 }
								condition = { type = area value = 555 }
								condition = { type = area value = 545 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 555 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 555 }
								condition = { type = area value = 545 }
								condition = { type = area value = 548 }
								condition = { type = area value = 576 }
								condition = { type = area value = 564 }
								condition = { type = area value = 560 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 560 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 560 }
								condition = { type = area value = 555 }
								condition = { type = area value = 599 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 564 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 564 }
								condition = { type = area value = 555 }
								condition = { type = area value = 576 }
								condition = { type = area value = 592 }
								condition = { type = area value = 610 }
								condition = { type = area value = 606 }
								condition = { type = area value = 599 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 574 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 574 }
								condition = { type = area value = 576 }
								condition = { type = area value = 413 }
								condition = { type = province value = 417 }
								condition = { type = area value = 406 }
								condition = { type = area value = 588 }
								condition = { type = area value = 592 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 576 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 576 }
								condition = { type = area value = 555 }
								condition = { type = area value = 548 }
								condition = { type = area value = 418 }
								condition = { type = area value = 413 }
								condition = { type = area value = 574 }
								condition = { type = area value = 588 }
								condition = { type = area value = 592 }
								condition = { type = area value = 564 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 588 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 588 }
								condition = { type = area value = 576 }
								condition = { type = area value = 574 }
								condition = { type = area value = 406 }
								condition = { type = area value = 400 }
								condition = { type = area value = 610 }
								condition = { type = area value = 592 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 592 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 592 }
								condition = { type = area value = 588 }
								condition = { type = area value = 610 }
								condition = { type = area value = 564 }
								condition = { type = area value = 576 }
								condition = { type = area value = 574 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 599 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 599 }
								condition = { type = area value = 564 }
								condition = { type = area value = 606 }
								condition = { type = area value = 676 }
								condition = { type = area value = 560 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 606 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 606 }
								condition = { type = area value = 599 }
								condition = { type = area value = 564 }
								condition = { type = area value = 610 }
								condition = { type = area value = 617 }
								condition = { type = area value = 618 }
								condition = { type = area value = 676 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 610 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 610 }
								condition = { type = area value = 612 }
								condition = { type = area value = 617 }
								condition = { type = area value = 606 }
								condition = { type = area value = 564 }
								condition = { type = area value = 592 }
								condition = { type = area value = 588 }
								condition = { type = area value = 400 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 612 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 612 }
								condition = { type = area value = 400 }
								condition = { type = area value = 610 }
								condition = { type = area value = 617 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 617 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 617 }
								condition = { type = area value = 612 }
								condition = { type = area value = 610 }
								condition = { type = area value = 606 }
								condition = { type = area value = 618 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 618 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 618 }
								condition = { type = area value = 617 }
								condition = { type = area value = 606 }
								condition = { type = area value = 624 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 624 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 624 }
								condition = { type = area value = 618 }
								condition = { type = area value = 627 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 627 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 627 }
								condition = { type = area value = 624 }
								condition = { type = area value = 661 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 636 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 636 }
								condition = { type = area value = 661 }
								condition = { type = area value = 644 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 644 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 644 }
								condition = { type = area value = 636 }
								condition = { type = area value = 661 }
								condition = { type = area value = 685 }
								condition = { type = area value = 690 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 650 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 650 }
								condition = { type = area value = 690 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 661 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 661 }
								condition = { type = area value = 627 }
								condition = { type = area value = 636 }
								condition = { type = area value = 644 }
								condition = { type = area value = 685 }
								condition = { type = area value = 681 }
								condition = { type = area value = 668 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 668 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 668 }
								condition = { type = area value = 676 }
								condition = { type = area value = 681 }
								condition = { type = area value = 661 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 676 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 676 }
								condition = { type = area value = 599 }
								condition = { type = area value = 606 }
								condition = { type = area value = 668 }
								condition = { type = area value = 681 }
								condition = { type = area value = 705 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 681 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 681 }
								condition = { type = area value = 705 }
								condition = { type = area value = 676 }
								condition = { type = area value = 668 }
								condition = { type = area value = 661 }
								condition = { type = area value = 685 }
								condition = { type = area value = 690 }
								condition = { type = area value = 713 }
								condition = { type = area value = 736 }
								condition = { type = area value = 750 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 685 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 685 }
								condition = { type = area value = 690 }
								condition = { type = area value = 681 }
								condition = { type = area value = 661 }
								condition = { type = area value = 664 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 690 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 690 }
								condition = { type = area value = 650 }
								condition = { type = area value = 713 }
								condition = { type = area value = 681 }
								condition = { type = area value = 661 }
								condition = { type = area value = 685 }
								condition = { type = area value = 664 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 705 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 705 }
								condition = { type = area value = 750 }
								condition = { type = area value = 676 }
								condition = { type = area value = 681 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 713 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 713 }
								condition = { type = area value = 690 }
								condition = { type = area value = 681 }
								condition = { type = area value = 736 }
								condition = { type = area value = 770 }
								condition = { type = area value = 724 }
								condition = { type = area value = 787 }
								condition = { type = area value = 720 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 720 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 720 }
								condition = { type = area value = 787 }
								condition = { type = area value = 713 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 724 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 724 }
								condition = { type = area value = 787 }
								condition = { type = area value = 770 }
								condition = { type = area value = 713 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 736 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 736 }
								condition = { type = area value = 750 }
								condition = { type = area value = 681 }
								condition = { type = area value = 713 }
								condition = { type = area value = 770 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 745 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 745 }
								condition = { type = area value = 496 }
								condition = { type = area value = 750 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 750 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 750 }
								condition = { type = area value = 745 }
								condition = { type = area value = 496 }
								condition = { type = area value = 705 }
								condition = { type = area value = 681 }
								condition = { type = area value = 736 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 756 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 756 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 770 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 770 }
								condition = { type = area value = 736 }
								condition = { type = area value = 713 }
								condition = { type = area value = 724 }
								condition = { type = area value = 787 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 787 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 787 }
								condition = { type = area value = 720 }
								condition = { type = area value = 713 }
								condition = { type = area value = 724 }
								condition = { type = area value = 770 }
								condition = { type = area value = 791 }
								condition = { type = area value = 800 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 791 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 791 }
								condition = { type = area value = 787 }
								condition = { type = area value = 800 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 800 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 800 }
								condition = { type = area value = 787 }
								condition = { type = area value = 791 }
								condition = { type = area value = 803 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 803 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 803 }
								condition = { type = area value = 800 }
								condition = { type = area value = 807 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 807 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 807 }
								condition = { type = area value = 803 }
								condition = { type = area value = 811 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 811 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 811 }
								condition = { type = area value = 803 }
								condition = { type = area value = 818 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 818 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 818 }
								condition = { type = area value = 811 }
								condition = { type = area value = 824 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 824 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 824 }
								condition = { type = area value = 818 }
								condition = { type = area value = 828 }
								condition = { type = area value = 831 }
								condition = { type = area value = 840 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 827 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 827 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 828 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 828 }
								condition = { type = area value = 824 }
								condition = { type = area value = 832 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 832 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 832 }
								condition = { type = area value = 824 }
								condition = { type = area value = 828 }
								condition = { type = area value = 840 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 840 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 840 }
								condition = { type = area value = 832 }
								condition = { type = area value = 824 }
								condition = { type = area value = 842 }
								condition = { type = area value = 846 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 842 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 842 }
								condition = { type = area value = 840 }
								condition = { type = area value = 180 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 846 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 846 }
								condition = { type = area value = 840 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 848 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 848 }
						}
					}
				}
			}
			factor = 4
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = region value = Asia_Minor }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = area value = 618 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 599 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 340 } }
							condition = { type = not value = { type = area value = 335 } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 791 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Balkan }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
							condition = { type = not value = { type = area value = 811 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 449 } }
							condition = { type = not value = { type = area value = 455 } }
							condition = { type = not value = { type = area value = 437 } }
							condition = { type = not value = { type = area value = 314 } }
							condition = { type = not value = { type = area value = 245 } }
							condition = { type = not value = { type = area value = 444 } }
							condition = { type = not value = { type = area value = 505 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 510 } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 599 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 676 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Britain }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = area value = 1 } }
							condition = { type = not value = { type = area value = 270 } }
							condition = { type = not value = { type = area value = 298 } }
							condition = { type = not value = { type = area value = 310 } }
							condition = { type = not value = { type = area value = 87 } }
							condition = { type = not value = { type = area value = 127 } }
							condition = { type = not value = { type = area value = 93 } }
							condition = { type = not value = { type = area value = 112 } }
							condition = { type = not value = { type = area value = 101 } }
							condition = { type = not value = { type = area value = 109 } }
							condition = { type = not value = { type = area value = 215 } }
							condition = { type = not value = { type = area value = 201 } }
							condition = { type = not value = { type = area value = 189 } }
							condition = { type = not value = { type = area value = 193 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Eastern_Europe }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 676 } }
							condition = { type = not value = { type = area value = 681 } }
							condition = { type = not value = { type = area value = 705 } }
							condition = { type = not value = { type = area value = 750 } }
							condition = { type = not value = { type = area value = 745 } }
							condition = { type = not value = { type = area value = 455 } }
							condition = { type = not value = { type = area value = 320 } }
							condition = { type = not value = { type = area value = 245 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = France }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 310 } }
							condition = { type = not value = { type = area value = 298 } }
							condition = { type = not value = { type = area value = 270 } }
							condition = { type = not value = { type = area value = 827 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Germany }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 464 } }
							condition = { type = not value = { type = area value = 505 } }
							condition = { type = not value = { type = area value = 468 } }
							condition = { type = not value = { type = province value = 501 } }
							condition = { type = not value = { type = province value = 502 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Italy }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = area value = 827 } }
							condition = { type = not value = { type = area value = 203 } }
							condition = { type = not value = { type = area value = 172 } }
							condition = { type = not value = { type = area value = 180 } }
							condition = { type = not value = { type = area value = 824 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 811 } }
							condition = { type = not value = { type = area value = 807 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 756 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Middle_East }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 510 } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 791 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Netherlands }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 201 } }
							condition = { type = not value = { type = area value = 189 } }
							condition = { type = not value = { type = area value = 193 } }
							condition = { type = not value = { type = area value = 528 } }
							condition = { type = not value = { type = area value = 375 } }
							condition = { type = not value = { type = area value = 413 } }
							condition = { type = not value = { type = area value = 381 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = North_Africa }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = North_Africa } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 676 } }
							condition = { type = not value = { type = area value = 720 } }
							condition = { type = not value = { type = area value = 713 } }
							condition = { type = not value = { type = area value = 724 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Russia }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 528 } }
							condition = { type = not value = { type = area value = 308 } }
							condition = { type = not value = { type = area value = 310 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Scandinavia }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 93 } }
							condition = { type = not value = { type = area value = 112 } }
							condition = { type = not value = { type = area value = 101 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Spain }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 848 } }
							condition = { type = not value = { type = area value = 846 } }
							condition = { type = not value = { type = area value = 842 } }
							condition = { type = not value = { type = area value = 840 } }
							condition = { type = not value = { type = area value = 832 } }
							condition = { type = not value = { type = area value = 824 } }
							condition = { type = not value = { type = area value = 828 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 827 } }
						}
					}
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = catholic }
			condition = { type = same_religion }
			factor = 4
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = religion value = catholic }
			condition = { type = or
				condition = { type = ruler_religion value = moslem }
				condition = { type = ruler_religion value = pagan }
				condition = { type = owner
					condition = { type = realm_ruler
						condition = { type = or
							condition = { type = religion value = moslem }
							condition = { type = religion value = pagan }
						}
					}
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = or
				condition = { type = religion value = moslem }
				condition = { type = religion value = pagan }
			}
			condition = { type = ruler_religion value = catholic }
			condition = { type = not value = { type = same_religion } }
			condition = { type = or
				condition = { type = region value = Spain }
				condition = { type = region value = Scandinavia }
				condition = { type = region value = Russia }
				condition = { type = region value = Eastern_Europe }
				condition = { type = region value = Germany }
				condition = { type = region value = Italy }
			}
			factor = 2
		}
		modifier = {
			condition = { type = has_improvement value = { traininggrounds = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { templar_house = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = has_improvement value = { waracademy = yes } }
			factor = 1.5
		}
		modifier = {
			condition = { type = has_improvement value = { grand_palace = yes } }
			factor = 2
		}
		modifier = {
			condition = { type = has_improvement value = { roadnet = yes } }
			factor = 1.05
		}
		modifier = {
			condition = { type = has_improvement value = { extensive_roadnet = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { royal_post = yes } }
			factor = 1.25
		}
		modifier = {
			condition = { type = has_improvement value = { court_of_justice = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { small_castle = yes } }
			factor = 1.05
		}
		modifier = {
			condition = { type = has_improvement value = { medium_castle = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { large_castle = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = has_improvement value = { huge_castle = yes } }
			factor = 1.25
		}
		modifier = {
			condition = { type = has_improvement value = { thieves_guild = yes } }
			factor = 0.85
		}
		modifier = {
			condition = { type = has_improvement value = { smugglers_ring = yes } }
			factor = 0.8
		}
		modifier = {
			condition = { type = has_improvement value = { highway_robber_band = yes } }
			factor = 0.75
		}
		modifier = {
			condition = { type = has_province_effect value = { looted = yes } }
			factor = 0.75
		}
		modifier = {
			condition = { type = has_province_effect value = { struggling = yes } }
			factor = 0.85
		}
		modifier = {
			condition = { type = has_province_effect value = { poor = yes } }
			factor = 0.9
		}
		modifier = {
			condition = { type = has_province_effect value = { rich = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = regiment_mobilized }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_intrigue value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_intrigue value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_intrigue value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_stewardship value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_stewardship value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_stewardship value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = generous }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = cruel }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = merciful }
			factor = 1.15
		}
		modifier = {
			condition = { type = trait value = arbitrary }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = just }
			factor = 1.15
		}
		modifier = {
			condition = { type = trait value = stutter }
			factor = 0.5
		}
		modifier = {
			condition = { type = trait value = intestinal_worm }
			factor = 3
		}
		modifier = {
			condition = { type = demesne value = GOLD }
			factor = 2
		}
		modifier = {
			condition = { type = demesne value = ILKH }
			factor = 2
		}
		modifier = {
			condition = { type = ai }
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 1 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 2 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			factor = 0.8
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			factor = 0.8
		}
	}

	action_a = { #Damn!
		effect = { type = add_province_effect value = revolt }
		effect = { type = add_province_effect value = looted }
		effect = { type = peasant_loyalty value = -0.9 }
		effect = { type = burgher_loyalty value = -0.75 }
		effect = { type = clergy_loyalty value = -0.5 }
		effect = { type = noble_loyalty value = -0.75 }
	}
}

province_event = { #It is very difficult to maintain authority in a province that is so far away.

	id = 5417
	picture = "event_crime"

	trigger = {
		#this trigger limit is a temporary fix for the issue of the event triggering when human-controlled ruler is at sea
		#needs to be replaced in future with area exclusions for sea zones in each of the areas
		condition = { type = and
			condition = { type = not value = { type = ai } }
			condition = { type = owner
				condition = { type = location
					condition = { type = or
						condition = { type = terrain value = Ocean }
						condition = { type = terrain value = River }			
						condition = { type = terrain value = Sea }
					}
				}
			}
		}
		#end of temporary trigger condition

		condition = { type = not value = { type = has_improvement value = { thieves_guild = yes } } }
		condition = { type = not value = { type = has_improvement value = { smugglers_ring = yes } } }
		condition = { type = not value = { type = has_improvement value = { highway_robber_band = yes } } }
		#is remote...
		condition = { type = not value = { type = capital value = yes } }
		condition = { type = or
			condition = { type = and
				condition = { type = area value = 1 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 1 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 10 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 10 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 22 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 22 } }
						condition = { type = not value = { type = area value = 64 } }
						condition = { type = not value = { type = area value = 57 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 44 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 44 } }
						condition = { type = not value = { type = area value = 64 } }
						condition = { type = not value = { type = area value = 57 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 57 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 57 } }
						condition = { type = not value = { type = area value = 44 } }
						condition = { type = not value = { type = area value = 64 } }
						condition = { type = not value = { type = area value = 22 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 64 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 64 } }
						condition = { type = not value = { type = area value = 57 } }
						condition = { type = not value = { type = area value = 22 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 82 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 82 } }
						condition = { type = not value = { type = area value = 93 } }
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 87 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 87 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 87 } }
						condition = { type = not value = { type = area value = 82 } }
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 310 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 93 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 93 } }
						condition = { type = not value = { type = area value = 112 } }
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 122 } }
						condition = { type = not value = { type = area value = 82 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 101 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 101 } }
						condition = { type = not value = { type = area value = 112 } }
						condition = { type = not value = { type = area value = 109 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 109 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 109 } }
						condition = { type = not value = { type = area value = 101 } }
						condition = { type = not value = { type = area value = 112 } }
						condition = { type = not value = { type = area value = 223 } }
						condition = { type = not value = { type = area value = 217 } }
						condition = { type = not value = { type = area value = 215 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 112 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 112 } }
						condition = { type = not value = { type = area value = 101 } }
						condition = { type = not value = { type = area value = 109 } }
						condition = { type = not value = { type = area value = 217 } }
						condition = { type = not value = { type = area value = 223 } }
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 93 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 127 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 82 } }
						condition = { type = not value = { type = area value = 93 } }
						condition = { type = not value = { type = area value = 112 } }
						condition = { type = not value = { type = area value = 223 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 251 } }
						condition = { type = not value = { type = area value = 122 } }
						condition = { type = not value = { type = area value = 310 } }
						condition = { type = not value = { type = area value = 87 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 172 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 172 } }
						condition = { type = not value = { type = area value = 180 } }
						condition = { type = not value = { type = area value = 178 } }
						condition = { type = not value = { type = area value = 189 } }
						condition = { type = not value = { type = area value = 201 } }
						condition = { type = not value = { type = area value = 203 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 178 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 178 } }
						condition = { type = not value = { type = area value = 180 } }
						condition = { type = not value = { type = area value = 183 } }
						condition = { type = not value = { type = area value = 193 } }
						condition = { type = not value = { type = area value = 189 } }
						condition = { type = not value = { type = area value = 172 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 180 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 180 } }
						condition = { type = not value = { type = area value = 183 } }
						condition = { type = not value = { type = area value = 178 } }
						condition = { type = not value = { type = area value = 172 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 183 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 183 } }
						condition = { type = not value = { type = area value = 193 } }
						condition = { type = not value = { type = area value = 178 } }
						condition = { type = not value = { type = area value = 180 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 189 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 189 } }
						condition = { type = not value = { type = area value = 201 } }
						condition = { type = not value = { type = area value = 172 } }
						condition = { type = not value = { type = area value = 178 } }
						condition = { type = not value = { type = area value = 193 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 193 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 193 } }
						condition = { type = not value = { type = area value = 189 } }
						condition = { type = not value = { type = area value = 178 } }
						condition = { type = not value = { type = area value = 183 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 201 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 201 } }
						condition = { type = not value = { type = area value = 215 } }
						condition = { type = not value = { type = area value = 203 } }
						condition = { type = not value = { type = area value = 172 } }
						condition = { type = not value = { type = area value = 189 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 203 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 203 } }
						condition = { type = not value = { type = area value = 172 } }
						condition = { type = not value = { type = area value = 201 } }
						condition = { type = not value = { type = area value = 215 } }
						condition = { type = not value = { type = province value = 212 } }
						condition = { type = not value = { type = province value = 220 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 215 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 215 } }
						condition = { type = not value = { type = area value = 203 } }
						condition = { type = not value = { type = area value = 201 } }
						condition = { type = not value = { type = area value = 109 } }
						condition = { type = not value = { type = area value = 217 } }
						condition = { type = not value = { type = area value = 223 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 217 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 217 } }
						condition = { type = not value = { type = area value = 223 } }
						condition = { type = not value = { type = area value = 215 } }
						condition = { type = not value = { type = area value = 109 } }
						condition = { type = not value = { type = area value = 112 } }
						condition = { type = not value = { type = area value = 231 } }
						condition = { type = not value = { type = province value = 239 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 223 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 223 } }
						condition = { type = not value = { type = province value = 205 } }
						condition = { type = not value = { type = province value = 206 } }
						condition = { type = not value = { type = area value = 215 } }
						condition = { type = not value = { type = area value = 217 } }
						condition = { type = not value = { type = area value = 109 } }
						condition = { type = not value = { type = area value = 112 } }
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 231 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 231 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 231 } }
						condition = { type = not value = { type = area value = 223 } }
						condition = { type = not value = { type = area value = 217 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 320 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 245 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 231 } }
						condition = { type = not value = { type = area value = 223 } }
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 251 } }
						condition = { type = not value = { type = area value = 314 } }
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 455 } }
						condition = { type = not value = { type = area value = 320 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 251 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 251 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 127 } }
						condition = { type = not value = { type = area value = 122 } }
						condition = { type = not value = { type = province value = 257 } }
						condition = { type = not value = { type = area value = 310 } }
						condition = { type = not value = { type = area value = 314 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 270 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 270 } }
						condition = { type = not value = { type = area value = 287 } }
						condition = { type = not value = { type = area value = 298 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 287 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 287 } }
						condition = { type = not value = { type = area value = 298 } }
						condition = { type = not value = { type = area value = 270 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 298 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 298 } }
						condition = { type = not value = { type = area value = 270 } }
						condition = { type = not value = { type = area value = 287 } }
						condition = { type = not value = { type = province value = 266 } }
						condition = { type = not value = { type = province value = 305 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 308 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 308 } }
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 437 } }
						condition = { type = not value = { type = area value = 310 } }
						condition = { type = not value = { type = province value = 266 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 310 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 310 } }
						condition = { type = not value = { type = area value = 308 } }
						condition = { type = not value = { type = area value = 437 } }
						condition = { type = not value = { type = area value = 314 } }
						condition = { type = not value = { type = area value = 251 } }
						condition = { type = not value = { type = province value = 121 } }
						condition = { type = not value = { type = province value = 120 } }
						condition = { type = not value = { type = area value = 87 } }
						condition = { type = not value = { type = province value = 302 } }
						condition = { type = not value = { type = province value = 303 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 314 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 314 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 251 } }
						condition = { type = not value = { type = area value = 310 } }
						condition = { type = not value = { type = area value = 437 } }
						condition = { type = not value = { type = area value = 449 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 320 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 320 } }
						condition = { type = not value = { type = area value = 231 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 455 } }
						condition = { type = not value = { type = area value = 330 } }
						condition = { type = not value = { type = province value = 448 } }
						condition = { type = not value = { type = province value = 458 } }
						condition = { type = not value = { type = province value = 459 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 325 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 325 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 330 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 330 } }
						condition = { type = not value = { type = area value = 320 } }
						condition = { type = not value = { type = area value = 335 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 335 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 335 } }
						condition = { type = not value = { type = area value = 330 } }
						condition = { type = not value = { type = province value = 339 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 340 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 340 } }
						condition = { type = not value = { type = province value = 338 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 375 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 375 } }
						condition = { type = not value = { type = area value = 413 } }
						condition = { type = not value = { type = area value = 418 } }
						condition = { type = not value = { type = area value = 528 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 381 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 381 } }
						condition = { type = not value = { type = area value = 393 } }
						condition = { type = not value = { type = area value = 413 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 393 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 393 } }
						condition = { type = not value = { type = area value = 400 } }
						condition = { type = not value = { type = area value = 406 } }
						condition = { type = not value = { type = area value = 413 } }
						condition = { type = not value = { type = area value = 381 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 400 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 400 } }
						condition = { type = not value = { type = area value = 612 } }
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 588 } }
						condition = { type = not value = { type = area value = 406 } }
						condition = { type = not value = { type = area value = 393 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 406 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 406 } }
						condition = { type = not value = { type = area value = 413 } }
						condition = { type = not value = { type = area value = 393 } }
						condition = { type = not value = { type = area value = 400 } }
						condition = { type = not value = { type = area value = 588 } }
						condition = { type = not value = { type = area value = 574 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 413 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 413 } }
						condition = { type = not value = { type = area value = 381 } }
						condition = { type = not value = { type = area value = 393 } }
						condition = { type = not value = { type = area value = 406 } }
						condition = { type = not value = { type = area value = 574 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 418 } }
						condition = { type = not value = { type = area value = 375 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 418 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 418 } }
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 375 } }
						condition = { type = not value = { type = area value = 413 } }
						condition = { type = not value = { type = area value = 574 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 548 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 437 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 437 } }
						condition = { type = not value = { type = area value = 308 } }
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 314 } }
						condition = { type = not value = { type = area value = 310 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 444 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 444 } }
						condition = { type = not value = { type = area value = 538 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 449 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 449 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 437 } }
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 538 } }
						condition = { type = not value = { type = area value = 444 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 464 } }
						condition = { type = not value = { type = area value = 455 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 314 } }
						condition = { type = not value = { type = province value = 358 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 455 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 455 } }
						condition = { type = not value = { type = area value = 320 } }
						condition = { type = not value = { type = area value = 245 } }
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 464 } }
						condition = { type = not value = { type = province value = 360 } }
						condition = { type = not value = { type = province value = 462 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 464 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 464 } }
						condition = { type = not value = { type = area value = 455 } }
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 468 } }
						condition = { type = not value = { type = province value = 358 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 468 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 468 } }
						condition = { type = not value = { type = area value = 464 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 490 } }
						condition = { type = not value = { type = area value = 472 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 472 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 472 } }
						condition = { type = not value = { type = area value = 468 } }
						condition = { type = not value = { type = area value = 490 } }
						condition = { type = not value = { type = area value = 481 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 480 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 480 } }
						condition = { type = not value = { type = area value = 481 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 481 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 481 } }
						condition = { type = not value = { type = area value = 480 } }
						condition = { type = not value = { type = area value = 472 } }
						condition = { type = not value = { type = area value = 490 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 490 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 490 } }
						condition = { type = not value = { type = area value = 481 } }
						condition = { type = not value = { type = area value = 472 } }
						condition = { type = not value = { type = area value = 468 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 496 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 496 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 496 } }
						condition = { type = not value = { type = area value = 490 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 510 } }
						condition = { type = not value = { type = area value = 750 } }
						condition = { type = not value = { type = area value = 745 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 505 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 468 } }
						condition = { type = not value = { type = area value = 464 } }
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 444 } }
						condition = { type = not value = { type = area value = 538 } }
						condition = { type = not value = { type = area value = 510 } }
						condition = { type = not value = { type = area value = 496 } }
						condition = { type = not value = { type = area value = 490 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 510 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 510 } }
						condition = { type = not value = { type = area value = 496 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 538 } }
						condition = { type = not value = { type = area value = 545 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 528 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 375 } }
						condition = { type = not value = { type = area value = 418 } }
						condition = { type = not value = { type = area value = 548 } }
						condition = { type = not value = { type = area value = 545 } }
						condition = { type = not value = { type = area value = 538 } }
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 437 } }
						condition = { type = not value = { type = area value = 308 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 538 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 538 } }
						condition = { type = not value = { type = area value = 510 } }
						condition = { type = not value = { type = area value = 505 } }
						condition = { type = not value = { type = area value = 444 } }
						condition = { type = not value = { type = area value = 449 } }
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 545 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 545 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 545 } }
						condition = { type = not value = { type = area value = 510 } }
						condition = { type = not value = { type = area value = 538 } }
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 548 } }
						condition = { type = not value = { type = area value = 555 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 548 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 548 } }
						condition = { type = not value = { type = area value = 528 } }
						condition = { type = not value = { type = area value = 418 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 555 } }
						condition = { type = not value = { type = area value = 545 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 555 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 555 } }
						condition = { type = not value = { type = area value = 545 } }
						condition = { type = not value = { type = area value = 548 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 564 } }
						condition = { type = not value = { type = area value = 560 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 560 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 560 } }
						condition = { type = not value = { type = area value = 555 } }
						condition = { type = not value = { type = area value = 599 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 564 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 564 } }
						condition = { type = not value = { type = area value = 555 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 592 } }
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 606 } }
						condition = { type = not value = { type = area value = 599 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 574 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 574 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 413 } }
						condition = { type = not value = { type = province value = 417 } }
						condition = { type = not value = { type = area value = 406 } }
						condition = { type = not value = { type = area value = 588 } }
						condition = { type = not value = { type = area value = 592 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 576 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 555 } }
						condition = { type = not value = { type = area value = 548 } }
						condition = { type = not value = { type = area value = 418 } }
						condition = { type = not value = { type = area value = 413 } }
						condition = { type = not value = { type = area value = 574 } }
						condition = { type = not value = { type = area value = 588 } }
						condition = { type = not value = { type = area value = 592 } }
						condition = { type = not value = { type = area value = 564 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 588 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 588 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 574 } }
						condition = { type = not value = { type = area value = 406 } }
						condition = { type = not value = { type = area value = 400 } }
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 592 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 592 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 592 } }
						condition = { type = not value = { type = area value = 588 } }
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 564 } }
						condition = { type = not value = { type = area value = 576 } }
						condition = { type = not value = { type = area value = 574 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 599 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 599 } }
						condition = { type = not value = { type = area value = 564 } }
						condition = { type = not value = { type = area value = 606 } }
						condition = { type = not value = { type = area value = 676 } }
						condition = { type = not value = { type = area value = 560 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 606 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 606 } }
						condition = { type = not value = { type = area value = 599 } }
						condition = { type = not value = { type = area value = 564 } }
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 617 } }
						condition = { type = not value = { type = area value = 618 } }
						condition = { type = not value = { type = area value = 676 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 610 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 612 } }
						condition = { type = not value = { type = area value = 617 } }
						condition = { type = not value = { type = area value = 606 } }
						condition = { type = not value = { type = area value = 564 } }
						condition = { type = not value = { type = area value = 592 } }
						condition = { type = not value = { type = area value = 588 } }
						condition = { type = not value = { type = area value = 400 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 612 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 612 } }
						condition = { type = not value = { type = area value = 400 } }
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 617 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 617 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 617 } }
						condition = { type = not value = { type = area value = 612 } }
						condition = { type = not value = { type = area value = 610 } }
						condition = { type = not value = { type = area value = 606 } }
						condition = { type = not value = { type = area value = 618 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 618 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 618 } }
						condition = { type = not value = { type = area value = 617 } }
						condition = { type = not value = { type = area value = 606 } }
						condition = { type = not value = { type = area value = 624 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 624 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 624 } }
						condition = { type = not value = { type = area value = 618 } }
						condition = { type = not value = { type = area value = 627 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 627 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 627 } }
						condition = { type = not value = { type = area value = 624 } }
						condition = { type = not value = { type = area value = 661 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 636 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 636 } }
						condition = { type = not value = { type = area value = 661 } }
						condition = { type = not value = { type = area value = 644 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 644 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 644 } }
						condition = { type = not value = { type = area value = 636 } }
						condition = { type = not value = { type = area value = 661 } }
						condition = { type = not value = { type = area value = 685 } }
						condition = { type = not value = { type = area value = 690 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 650 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 650 } }
						condition = { type = not value = { type = area value = 690 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 661 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 661 } }
						condition = { type = not value = { type = area value = 627 } }
						condition = { type = not value = { type = area value = 636 } }
						condition = { type = not value = { type = area value = 644 } }
						condition = { type = not value = { type = area value = 685 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 668 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 668 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 668 } }
						condition = { type = not value = { type = area value = 676 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 661 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 676 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 676 } }
						condition = { type = not value = { type = area value = 599 } }
						condition = { type = not value = { type = area value = 606 } }
						condition = { type = not value = { type = area value = 668 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 705 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 681 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 705 } }
						condition = { type = not value = { type = area value = 676 } }
						condition = { type = not value = { type = area value = 668 } }
						condition = { type = not value = { type = area value = 661 } }
						condition = { type = not value = { type = area value = 685 } }
						condition = { type = not value = { type = area value = 690 } }
						condition = { type = not value = { type = area value = 713 } }
						condition = { type = not value = { type = area value = 736 } }
						condition = { type = not value = { type = area value = 750 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 685 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 685 } }
						condition = { type = not value = { type = area value = 690 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 661 } }
						condition = { type = not value = { type = area value = 664 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 690 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 690 } }
						condition = { type = not value = { type = area value = 650 } }
						condition = { type = not value = { type = area value = 713 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 661 } }
						condition = { type = not value = { type = area value = 685 } }
						condition = { type = not value = { type = area value = 664 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 705 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 705 } }
						condition = { type = not value = { type = area value = 750 } }
						condition = { type = not value = { type = area value = 676 } }
						condition = { type = not value = { type = area value = 681 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 713 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 713 } }
						condition = { type = not value = { type = area value = 690 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 736 } }
						condition = { type = not value = { type = area value = 770 } }
						condition = { type = not value = { type = area value = 724 } }
						condition = { type = not value = { type = area value = 787 } }
						condition = { type = not value = { type = area value = 720 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 720 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 720 } }
						condition = { type = not value = { type = area value = 787 } }
						condition = { type = not value = { type = area value = 713 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 724 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 724 } }
						condition = { type = not value = { type = area value = 787 } }
						condition = { type = not value = { type = area value = 770 } }
						condition = { type = not value = { type = area value = 713 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 736 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 736 } }
						condition = { type = not value = { type = area value = 750 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 713 } }
						condition = { type = not value = { type = area value = 770 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 745 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 745 } }
						condition = { type = not value = { type = area value = 496 } }
						condition = { type = not value = { type = area value = 750 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 750 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 750 } }
						condition = { type = not value = { type = area value = 745 } }
						condition = { type = not value = { type = area value = 496 } }
						condition = { type = not value = { type = area value = 705 } }
						condition = { type = not value = { type = area value = 681 } }
						condition = { type = not value = { type = area value = 736 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 756 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 756 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 770 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 770 } }
						condition = { type = not value = { type = area value = 736 } }
						condition = { type = not value = { type = area value = 713 } }
						condition = { type = not value = { type = area value = 724 } }
						condition = { type = not value = { type = area value = 787 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 787 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 787 } }
						condition = { type = not value = { type = area value = 720 } }
						condition = { type = not value = { type = area value = 713 } }
						condition = { type = not value = { type = area value = 724 } }
						condition = { type = not value = { type = area value = 770 } }
						condition = { type = not value = { type = area value = 791 } }
						condition = { type = not value = { type = area value = 800 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 791 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 791 } }
						condition = { type = not value = { type = area value = 787 } }
						condition = { type = not value = { type = area value = 800 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 800 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 800 } }
						condition = { type = not value = { type = area value = 787 } }
						condition = { type = not value = { type = area value = 791 } }
						condition = { type = not value = { type = area value = 803 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 803 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 803 } }
						condition = { type = not value = { type = area value = 800 } }
						condition = { type = not value = { type = area value = 807 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 807 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 807 } }
						condition = { type = not value = { type = area value = 803 } }
						condition = { type = not value = { type = area value = 811 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 811 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 811 } }
						condition = { type = not value = { type = area value = 803 } }
						condition = { type = not value = { type = area value = 818 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 818 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 818 } }
						condition = { type = not value = { type = area value = 811 } }
						condition = { type = not value = { type = area value = 824 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 824 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 824 } }
						condition = { type = not value = { type = area value = 818 } }
						condition = { type = not value = { type = area value = 828 } }
						condition = { type = not value = { type = area value = 831 } }
						condition = { type = not value = { type = area value = 840 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 827 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 827 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 828 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 828 } }
						condition = { type = not value = { type = area value = 824 } }
						condition = { type = not value = { type = area value = 832 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 832 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 832 } }
						condition = { type = not value = { type = area value = 824 } }
						condition = { type = not value = { type = area value = 828 } }
						condition = { type = not value = { type = area value = 840 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 840 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 840 } }
						condition = { type = not value = { type = area value = 832 } }
						condition = { type = not value = { type = area value = 824 } }
						condition = { type = not value = { type = area value = 842 } }
						condition = { type = not value = { type = area value = 846 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 842 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 842 } }
						condition = { type = not value = { type = area value = 840 } }
						condition = { type = not value = { type = area value = 180 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 846 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 846 } }
						condition = { type = not value = { type = area value = 840 } }
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 848 }
				condition = { type = owner
					condition = { type = capital
						condition = { type = not value = { type = area value = 848 } }
					}
				}
			}
		}
	}

	mean_time_to_happen = {

		months = 750

		modifier = {
			condition = { type = not value = { type = same_religion } }
			factor = 0.6
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = not value = { type = ruler_religion value = catholic } }
					condition = { type = not value = { type = ruler_religion value = orthodox } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = not value = { type = ruler_religion value = orthodox } }
					condition = { type = not value = { type = ruler_religion value = catholic } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = not value = { type = ruler_religion value = moslem } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = not value = { type = ruler_religion value = pagan } }
					}
				condition = { type = and
					condition = { type = religion value = jewish }
					condition = { type = not value = { type = ruler_religion value = jewish } }
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = region value = Spain }
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = moslem }
			condition = { type = owner
				condition = { type = capital
					condition = { type = region value = Spain }
				}
				condition = { type = or
					condition = { type = is_independent }
					condition = { type = realm_ruler
						condition = { type = capital
							condition = { type = or
								condition = { type = region value = Spain }
								condition = { type = area value = 827 }
								condition = { type = area value = 824 }
								condition = { type = area value = 831 }
								condition = { type = area value = 840 }
								condition = { type = area value = 842 }
								condition = { type = area value = 846 }
								condition = { type = area value = 848 }
								condition = { type = area value = 828 }
							}
						}
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = region value = Spain }
			condition = { type = religion value = moslem }
			condition = { type = ruler_religion value = catholic }
			condition = { type = owner
				condition = { type = capital
					condition = { type = region value = Spain }
				}
				condition = { type = or
					condition = { type = is_independent }
					condition = { type = realm_ruler
						condition = { type = religion value = catholic }
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = region value = Asia_Minor }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = area value = 618 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 599 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 340 } }
							condition = { type = not value = { type = area value = 335 } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 791 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Balkan }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
							condition = { type = not value = { type = area value = 811 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 449 } }
							condition = { type = not value = { type = area value = 455 } }
							condition = { type = not value = { type = area value = 437 } }
							condition = { type = not value = { type = area value = 314 } }
							condition = { type = not value = { type = area value = 245 } }
							condition = { type = not value = { type = area value = 444 } }
							condition = { type = not value = { type = area value = 505 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 510 } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 599 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 676 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Britain }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = area value = 1 } }
							condition = { type = not value = { type = area value = 270 } }
							condition = { type = not value = { type = area value = 298 } }
							condition = { type = not value = { type = area value = 310 } }
							condition = { type = not value = { type = area value = 87 } }
							condition = { type = not value = { type = area value = 127 } }
							condition = { type = not value = { type = area value = 93 } }
							condition = { type = not value = { type = area value = 112 } }
							condition = { type = not value = { type = area value = 101 } }
							condition = { type = not value = { type = area value = 109 } }
							condition = { type = not value = { type = area value = 215 } }
							condition = { type = not value = { type = area value = 201 } }
							condition = { type = not value = { type = area value = 189 } }
							condition = { type = not value = { type = area value = 193 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Eastern_Europe }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 676 } }
							condition = { type = not value = { type = area value = 681 } }
							condition = { type = not value = { type = area value = 705 } }
							condition = { type = not value = { type = area value = 750 } }
							condition = { type = not value = { type = area value = 745 } }
							condition = { type = not value = { type = area value = 455 } }
							condition = { type = not value = { type = area value = 320 } }
							condition = { type = not value = { type = area value = 245 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = France }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 310 } }
							condition = { type = not value = { type = area value = 298 } }
							condition = { type = not value = { type = area value = 270 } }
							condition = { type = not value = { type = area value = 827 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Germany }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 464 } }
							condition = { type = not value = { type = area value = 505 } }
							condition = { type = not value = { type = area value = 468 } }
							condition = { type = not value = { type = province value = 501 } }
							condition = { type = not value = { type = province value = 502 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Italy }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = area value = 827 } }
							condition = { type = not value = { type = area value = 203 } }
							condition = { type = not value = { type = area value = 172 } }
							condition = { type = not value = { type = area value = 180 } }
							condition = { type = not value = { type = area value = 824 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 811 } }
							condition = { type = not value = { type = area value = 807 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 756 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Middle_East }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 510 } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 791 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Netherlands }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 201 } }
							condition = { type = not value = { type = area value = 189 } }
							condition = { type = not value = { type = area value = 193 } }
							condition = { type = not value = { type = area value = 528 } }
							condition = { type = not value = { type = area value = 375 } }
							condition = { type = not value = { type = area value = 413 } }
							condition = { type = not value = { type = area value = 381 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = North_Africa }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = North_Africa } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 676 } }
							condition = { type = not value = { type = area value = 720 } }
							condition = { type = not value = { type = area value = 713 } }
							condition = { type = not value = { type = area value = 724 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Russia }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 528 } }
							condition = { type = not value = { type = area value = 308 } }
							condition = { type = not value = { type = area value = 310 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Scandinavia }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 93 } }
							condition = { type = not value = { type = area value = 112 } }
							condition = { type = not value = { type = area value = 101 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Spain }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 848 } }
							condition = { type = not value = { type = area value = 846 } }
							condition = { type = not value = { type = area value = 842 } }
							condition = { type = not value = { type = area value = 840 } }
							condition = { type = not value = { type = area value = 832 } }
							condition = { type = not value = { type = area value = 824 } }
							condition = { type = not value = { type = area value = 828 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 827 } }
						}
					}
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = catholic }
			condition = { type = same_religion }
			factor = 4
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = religion value = catholic }
			condition = { type = or
				condition = { type = ruler_religion value = moslem }
				condition = { type = ruler_religion value = pagan }
				condition = { type = owner
					condition = { type = realm_ruler
						condition = { type = or
							condition = { type = religion value = moslem }
							condition = { type = religion value = pagan }
						}
					}
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = or
				condition = { type = religion value = moslem }
				condition = { type = religion value = pagan }
			}
			condition = { type = ruler_religion value = catholic }
			condition = { type = not value = { type = same_religion } }
			condition = { type = or
				condition = { type = region value = Spain }
				condition = { type = region value = Scandinavia }
				condition = { type = region value = Russia }
				condition = { type = region value = Eastern_Europe }
				condition = { type = region value = Germany }
				condition = { type = region value = Italy }
			}
			factor = 2
		}
		modifier = {
			condition = { type = has_improvement value = { traininggrounds = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { templar_house = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = has_improvement value = { waracademy = yes } }
			factor = 1.5
		}
		modifier = {
			condition = { type = has_improvement value = { grand_palace = yes } }
			factor = 2
		}
		modifier = {
			condition = { type = has_improvement value = { roadnet = yes } }
			factor = 1.05
		}
		modifier = {
			condition = { type = has_improvement value = { extensive_roadnet = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { royal_post = yes } }
			factor = 1.25
		}
		modifier = {
			condition = { type = has_improvement value = { court_of_justice = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { small_castle = yes } }
			factor = 1.05
		}
		modifier = {
			condition = { type = has_improvement value = { medium_castle = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { large_castle = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = has_improvement value = { huge_castle = yes } }
			factor = 1.25
		}
		modifier = {
			condition = { type = has_province_effect value = { revolt = yes } }
			factor = 0.5
		}
		modifier = {
			condition = { type = has_province_effect value = { looted = yes } }
			factor = 0.5
		}
		modifier = {
			condition = { type = has_province_effect value = { struggling = yes } }
			factor = 0.85
		}
		modifier = {
			condition = { type = has_province_effect value = { poor = yes } }
			factor = 0.9
		}
		modifier = {
			condition = { type = has_province_effect value = { rich = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = regiment_mobilized }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_intrigue value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_intrigue value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_intrigue value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_stewardship value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_stewardship value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_stewardship value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = generous }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = cruel }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = merciful }
			factor = 1.15
		}
		modifier = {
			condition = { type = trait value = arbitrary }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = just }
			factor = 1.15
		}
		modifier = {
			condition = { type = trait value = stutter }
			factor = 0.5
		}
		modifier = {
			condition = { type = trait value = intestinal_worm }
			factor = 3
		}
		modifier = {
			condition = { type = demesne value = GOLD }
			factor = 2
		}
		modifier = {
			condition = { type = demesne value = ILKH }
			factor = 2
		}
		modifier = {
			condition = { type = ai }
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 1 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 2 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			factor = 0.8
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			factor = 0.8
		}
	}

	action_a = { #Thieves are everywhere!
		effect = { type = add_improvement value = thieves_guild }
		effect = { type = add_improvement value = smugglers_ring }
		effect = { type = add_improvement value = highway_robber_band }
		effect = { type = peasant_loyalty value = -0.5 }
		effect = { type = burgher_loyalty value = -0.5 }
		effect = { type = clergy_loyalty value = -0.25 }
		effect = { type = noble_loyalty value = -0.5 }
	}
}

province_event = { #A remote provincial uprising continues unabated.

	id = 5418
	picture = "event_battle"

	trigger = {
		#this trigger limit is a temporary fix for the issue of the event triggering when human-controlled ruler is at sea
		#needs to be replaced in future with area exclusions for sea zones in each of the areas
		condition = { type = and
			condition = { type = not value = { type = ai } }
			condition = { type = owner
				condition = { type = location
					condition = { type = or
						condition = { type = terrain value = Ocean }
						condition = { type = terrain value = River }			
						condition = { type = terrain value = Sea }
					}
				}
			}
		}
		#end of temporary trigger condition


		condition = { type = has_province_effect value = { revolt = yes } }
		condition = { type = not value = { type = has_province_effect value = { looted = yes } } }
		#is remote...
		condition = { type = not value = { type = capital value = yes } }
		condition = { type = or
			condition = { type = and
				condition = { type = area value = 1 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 1 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 1 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 10 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 10 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 10 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 22 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 22 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 22 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 44 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 57 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 44 } }
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 64 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 64 } }
								condition = { type = not value = { type = area value = 57 } }
								condition = { type = not value = { type = area value = 22 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 82 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 87 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 93 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 82 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 82 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 101 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 109 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 109 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 109 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 215 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 215 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 112 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 93 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 101 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 93 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 127 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 82 } }
								condition = { type = not value = { type = area value = 93 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 87 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 172 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 203 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 203 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 178 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 180 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 180 } }
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 172 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 183 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 183 } }
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 189 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 193 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 193 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 193 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 183 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 193 } }
								condition = { type = not value = { type = area value = 189 } }
								condition = { type = not value = { type = area value = 178 } }
								condition = { type = not value = { type = area value = 183 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 201 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 189 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 189 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 203 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = province value = 212 } }
								condition = { type = not value = { type = province value = 220 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 172 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = province value = 212 } }
								condition = { type = not value = { type = province value = 220 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 215 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 203 } }
								condition = { type = not value = { type = area value = 201 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 217 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = province value = 239 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = province value = 239 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 223 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = province value = 205 } }
								condition = { type = not value = { type = province value = 206 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = province value = 205 } }
								condition = { type = not value = { type = province value = 206 } }
								condition = { type = not value = { type = area value = 215 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 109 } }
								condition = { type = not value = { type = area value = 112 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 231 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 217 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 245 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 223 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 251 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = province value = 257 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 314 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 127 } }
								condition = { type = not value = { type = area value = 122 } }
								condition = { type = not value = { type = province value = 257 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 314 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 270 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 287 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 298 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = province value = 266 } }
								condition = { type = not value = { type = province value = 305 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 298 } }
								condition = { type = not value = { type = area value = 270 } }
								condition = { type = not value = { type = area value = 287 } }
								condition = { type = not value = { type = province value = 266 } }
								condition = { type = not value = { type = province value = 305 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 308 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = province value = 266 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = province value = 266 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 310 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = province value = 121 } }
								condition = { type = not value = { type = province value = 120 } }
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = province value = 302 } }
								condition = { type = not value = { type = province value = 303 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = province value = 121 } }
								condition = { type = not value = { type = province value = 120 } }
								condition = { type = not value = { type = area value = 87 } }
								condition = { type = not value = { type = province value = 302 } }
								condition = { type = not value = { type = province value = 303 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 314 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 251 } }
								condition = { type = not value = { type = area value = 310 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 320 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 448 } }
								condition = { type = not value = { type = province value = 458 } }
								condition = { type = not value = { type = province value = 459 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 231 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 448 } }
								condition = { type = not value = { type = province value = 458 } }
								condition = { type = not value = { type = province value = 459 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 325 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 325 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 325 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 330 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 335 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 335 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 335 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 335 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 339 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 335 } }
								condition = { type = not value = { type = area value = 330 } }
								condition = { type = not value = { type = province value = 339 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 340 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 340 } }
								condition = { type = not value = { type = province value = 338 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 340 } }
								condition = { type = not value = { type = province value = 338 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 375 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 381 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 413 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 413 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 393 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 400 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 393 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 393 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 406 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 413 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 375 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 381 } }
								condition = { type = not value = { type = area value = 393 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 375 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 418 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 548 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 548 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 437 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = area value = 310 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 444 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 449 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 449 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 314 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 455 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = province value = 360 } }
								condition = { type = not value = { type = province value = 462 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 320 } }
								condition = { type = not value = { type = area value = 245 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = province value = 360 } }
								condition = { type = not value = { type = province value = 462 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 464 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 455 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = province value = 358 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 468 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 472 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 472 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 472 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 480 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 481 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 481 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 480 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 490 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 496 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 481 } }
								condition = { type = not value = { type = area value = 472 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 496 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 496 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 505 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 468 } }
								condition = { type = not value = { type = area value = 464 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 490 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 510 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 528 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 375 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 437 } }
								condition = { type = not value = { type = area value = 308 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 538 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 505 } }
								condition = { type = not value = { type = area value = 444 } }
								condition = { type = not value = { type = area value = 449 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 545 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 555 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 510 } }
								condition = { type = not value = { type = area value = 538 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 555 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 548 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 528 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 555 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 545 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 560 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 560 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 560 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 564 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 574 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = province value = 417 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = province value = 417 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 576 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 564 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 555 } }
								condition = { type = not value = { type = area value = 548 } }
								condition = { type = not value = { type = area value = 418 } }
								condition = { type = not value = { type = area value = 413 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 564 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 588 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
								condition = { type = not value = { type = area value = 406 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 592 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 592 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 576 } }
								condition = { type = not value = { type = area value = 574 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 599 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 560 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 606 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 676 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 676 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 610 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 400 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 564 } }
								condition = { type = not value = { type = area value = 592 } }
								condition = { type = not value = { type = area value = 588 } }
								condition = { type = not value = { type = area value = 400 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 612 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 400 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 617 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 617 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 618 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 612 } }
								condition = { type = not value = { type = area value = 610 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 618 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 618 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 624 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 617 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 624 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 624 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 627 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 618 } }
								condition = { type = not value = { type = area value = 627 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 627 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 624 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 636 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 644 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 644 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 644 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 650 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 690 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 661 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 668 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 627 } }
								condition = { type = not value = { type = area value = 636 } }
								condition = { type = not value = { type = area value = 644 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 668 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 668 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 676 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 599 } }
								condition = { type = not value = { type = area value = 606 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 681 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 668 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 685 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 690 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 650 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 661 } }
								condition = { type = not value = { type = area value = 685 } }
								condition = { type = not value = { type = area value = 664 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 705 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 676 } }
								condition = { type = not value = { type = area value = 681 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 713 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 690 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 720 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 724 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 713 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 736 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 770 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 770 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 745 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 750 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 750 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 750 } }
								condition = { type = not value = { type = area value = 745 } }
								condition = { type = not value = { type = area value = 496 } }
								condition = { type = not value = { type = area value = 705 } }
								condition = { type = not value = { type = area value = 681 } }
								condition = { type = not value = { type = area value = 736 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 756 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 756 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 756 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 770 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 736 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 787 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 787 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 720 } }
								condition = { type = not value = { type = area value = 713 } }
								condition = { type = not value = { type = area value = 724 } }
								condition = { type = not value = { type = area value = 770 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 791 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 800 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 800 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 803 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 787 } }
								condition = { type = not value = { type = area value = 791 } }
								condition = { type = not value = { type = area value = 803 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 803 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 807 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 800 } }
								condition = { type = not value = { type = area value = 807 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 807 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 807 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 811 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 807 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 811 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 811 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 818 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 803 } }
								condition = { type = not value = { type = area value = 818 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 818 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 824 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 811 } }
								condition = { type = not value = { type = area value = 824 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 824 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 831 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 818 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 831 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 827 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 827 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 827 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 828 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 832 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 832 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 832 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 828 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 840 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 846 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 832 } }
								condition = { type = not value = { type = area value = 824 } }
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 846 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 842 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 842 } }
								condition = { type = not value = { type = area value = 840 } }
								condition = { type = not value = { type = area value = 180 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 846 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 846 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 846 } }
								condition = { type = not value = { type = area value = 840 } }
							}
						}
					}
				}
			}
			condition = { type = and
				condition = { type = area value = 848 }
				condition = { type = owner
					condition = { type = or
						condition = { type = and
							condition = { type = ai }
							condition = { type = capital
								condition = { type = not value = { type = area value = 848 } }
							}
						}
						condition = { type = and
							condition = { type = not value = { type = ai } }
							condition = { type = location
								condition = { type = not value = { type = area value = 848 } }
							}
						}
					}
				}
			}
		}
	}

	mean_time_to_happen = {

		months = 750

		modifier = {
			condition = { type = not value = { type = same_religion } }
			factor = 0.6
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = not value = { type = ruler_religion value = catholic } }
					condition = { type = not value = { type = ruler_religion value = orthodox } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = not value = { type = ruler_religion value = orthodox } }
					condition = { type = not value = { type = ruler_religion value = catholic } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = not value = { type = ruler_religion value = moslem } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = not value = { type = ruler_religion value = pagan } }
					}
				condition = { type = and
					condition = { type = religion value = jewish }
					condition = { type = not value = { type = ruler_religion value = jewish } }
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = region value = Spain }
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = moslem }
			condition = { type = owner
				condition = { type = capital
					condition = { type = region value = Spain }
				}
				condition = { type = or
					condition = { type = is_independent }
					condition = { type = realm_ruler
						condition = { type = capital
							condition = { type = or
								condition = { type = region value = Spain }
								condition = { type = area value = 827 }
								condition = { type = area value = 824 }
								condition = { type = area value = 831 }
								condition = { type = area value = 840 }
								condition = { type = area value = 842 }
								condition = { type = area value = 846 }
								condition = { type = area value = 848 }
								condition = { type = area value = 828 }
							}
						}
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = region value = Spain }
			condition = { type = religion value = moslem }
			condition = { type = ruler_religion value = catholic }
			condition = { type = owner
				condition = { type = capital
					condition = { type = region value = Spain }
				}
				condition = { type = or
					condition = { type = is_independent }
					condition = { type = realm_ruler
						condition = { type = religion value = catholic }
					}
				}
			}
			factor = 2
		}
		modifier  = {
			condition = { type = not value = { type = ai } }
			condition = { type = owner
				condition = { type = command }
			}
			condition = { type = or
				condition = { type = and
					condition = { type = area value = 1 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 1 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 10 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 10 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 22 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 22 }
								condition = { type = area value = 64 }
								condition = { type = area value = 57 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 44 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 44 }
								condition = { type = area value = 64 }
								condition = { type = area value = 57 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 57 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 57 }
								condition = { type = area value = 44 }
								condition = { type = area value = 64 }
								condition = { type = area value = 22 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 64 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 64 }
								condition = { type = area value = 57 }
								condition = { type = area value = 22 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 82 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 82 }
								condition = { type = area value = 93 }
								condition = { type = area value = 127 }
								condition = { type = area value = 87 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 87 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 87 }
								condition = { type = area value = 82 }
								condition = { type = area value = 127 }
								condition = { type = area value = 310 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 93 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 93 }
								condition = { type = area value = 112 }
								condition = { type = area value = 127 }
								condition = { type = area value = 122 }
								condition = { type = area value = 82 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 101 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 101 }
								condition = { type = area value = 112 }
								condition = { type = area value = 109 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 109 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 109 }
								condition = { type = area value = 101 }
								condition = { type = area value = 112 }
								condition = { type = area value = 223 }
								condition = { type = area value = 217 }
								condition = { type = area value = 215 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 112 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 112 }
								condition = { type = area value = 101 }
								condition = { type = area value = 109 }
								condition = { type = area value = 217 }
								condition = { type = area value = 223 }
								condition = { type = area value = 127 }
								condition = { type = area value = 93 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 127 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 127 }
								condition = { type = area value = 82 }
								condition = { type = area value = 93 }
								condition = { type = area value = 112 }
								condition = { type = area value = 223 }
								condition = { type = area value = 245 }
								condition = { type = area value = 245 }
								condition = { type = area value = 251 }
								condition = { type = area value = 122 }
								condition = { type = area value = 310 }
								condition = { type = area value = 87 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 172 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 172 }
								condition = { type = area value = 180 }
								condition = { type = area value = 178 }
								condition = { type = area value = 189 }
								condition = { type = area value = 201 }
								condition = { type = area value = 203 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 178 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 178 }
								condition = { type = area value = 180 }
								condition = { type = area value = 183 }
								condition = { type = area value = 193 }
								condition = { type = area value = 189 }
								condition = { type = area value = 172 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 180 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 180 }
								condition = { type = area value = 183 }
								condition = { type = area value = 178 }
								condition = { type = area value = 172 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 183 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 183 }
								condition = { type = area value = 193 }
								condition = { type = area value = 178 }
								condition = { type = area value = 180 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 189 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 189 }
								condition = { type = area value = 201 }
								condition = { type = area value = 172 }
								condition = { type = area value = 178 }
								condition = { type = area value = 193 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 193 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 193 }
								condition = { type = area value = 189 }
								condition = { type = area value = 178 }
								condition = { type = area value = 183 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 201 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 201 }
								condition = { type = area value = 215 }
								condition = { type = area value = 203 }
								condition = { type = area value = 172 }
								condition = { type = area value = 189 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 203 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 203 }
								condition = { type = area value = 172 }
								condition = { type = area value = 201 }
								condition = { type = area value = 215 }
								condition = { type = province value = 212 }
								condition = { type = province value = 220 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 215 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 215 }
								condition = { type = area value = 203 }
								condition = { type = area value = 201 }
								condition = { type = area value = 109 }
								condition = { type = area value = 217 }
								condition = { type = area value = 223 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 217 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 217 }
							condition = { type = area value = 223 }
							condition = { type = area value = 215 }
							condition = { type = area value = 109 }
							condition = { type = area value = 112 }
							condition = { type = area value = 231 }
							condition = { type = province value = 239 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 223 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 223 }
								condition = { type = province value = 205 }
								condition = { type = province value = 206 }
								condition = { type = area value = 215 }
								condition = { type = area value = 217 }
								condition = { type = area value = 109 }
								condition = { type = area value = 112 }
								condition = { type = area value = 127 }
								condition = { type = area value = 245 }
								condition = { type = area value = 231 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 231 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 231 }
								condition = { type = area value = 223 }
								condition = { type = area value = 217 }
								condition = { type = area value = 245 }
								condition = { type = area value = 320 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 245 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 245 }
								condition = { type = area value = 231 }
								condition = { type = area value = 223 }
								condition = { type = area value = 127 }
								condition = { type = area value = 251 }
								condition = { type = area value = 314 }
								condition = { type = area value = 449 }
								condition = { type = area value = 455 }
								condition = { type = area value = 320 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 251 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 251 }
								condition = { type = area value = 245 }
								condition = { type = area value = 127 }
								condition = { type = area value = 122 }
								condition = { type = province value = 257 }
								condition = { type = area value = 310 }
								condition = { type = area value = 314 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 270 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 270 }
								condition = { type = area value = 287 }
								condition = { type = area value = 298 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 287 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 287 }
								condition = { type = area value = 298 }
								condition = { type = area value = 270 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 298 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 298 }
								condition = { type = area value = 270 }
								condition = { type = area value = 287 }
								condition = { type = province value = 266 }
								condition = { type = province value = 305 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 308 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 308 }
								condition = { type = area value = 528 }
								condition = { type = area value = 437 }
								condition = { type = area value = 310 }
								condition = { type = province value = 266 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 310 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 310 }
								condition = { type = area value = 308 }
								condition = { type = area value = 437 }
								condition = { type = area value = 314 }
								condition = { type = area value = 251 }
								condition = { type = province value = 121 }
								condition = { type = province value = 120 }
								condition = { type = area value = 87 }
								condition = { type = province value = 302 }
								condition = { type = province value = 303 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 314 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 314 }
								condition = { type = area value = 245 }
								condition = { type = area value = 251 }
								condition = { type = area value = 310 }
								condition = { type = area value = 437 }
								condition = { type = area value = 449 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 320 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 320 }
								condition = { type = area value = 231 }
								condition = { type = area value = 245 }
								condition = { type = area value = 455 }
								condition = { type = area value = 330 }
								condition = { type = province value = 448 }
								condition = { type = province value = 458 }
								condition = { type = province value = 459 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 325 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 325 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 330 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 330 }
								condition = { type = area value = 320 }
								condition = { type = area value = 335 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 335 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 335 }
								condition = { type = area value = 330 }
								condition = { type = province value = 339 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 340 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 340 }
								condition = { type = province value = 338 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 375 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 375 }
								condition = { type = area value = 413 }
								condition = { type = area value = 418 }
								condition = { type = area value = 528 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 381 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 381 }
								condition = { type = area value = 393 }
								condition = { type = area value = 413 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 393 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 393 }
								condition = { type = area value = 400 }
								condition = { type = area value = 406 }
								condition = { type = area value = 413 }
								condition = { type = area value = 381 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 400 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 400 }
								condition = { type = area value = 612 }
								condition = { type = area value = 610 }
								condition = { type = area value = 588 }
								condition = { type = area value = 406 }
								condition = { type = area value = 393 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 406 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 406 }
								condition = { type = area value = 413 }
								condition = { type = area value = 393 }
								condition = { type = area value = 400 }
								condition = { type = area value = 588 }
								condition = { type = area value = 574 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 413 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 413 }
								condition = { type = area value = 381 }
								condition = { type = area value = 393 }
								condition = { type = area value = 406 }
								condition = { type = area value = 574 }
								condition = { type = area value = 576 }
								condition = { type = area value = 418 }
								condition = { type = area value = 375 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 418 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 418 }
								condition = { type = area value = 528 }
								condition = { type = area value = 375 }
								condition = { type = area value = 413 }
								condition = { type = area value = 574 }
								condition = { type = area value = 576 }
								condition = { type = area value = 548 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 437 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 437 }
								condition = { type = area value = 308 }
								condition = { type = area value = 528 }
								condition = { type = area value = 449 }
								condition = { type = area value = 314 }
								condition = { type = area value = 310 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 444 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 444 }
								condition = { type = area value = 538 }
								condition = { type = area value = 505 }
								condition = { type = area value = 449 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 449 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 449 }
								condition = { type = area value = 437 }
								condition = { type = area value = 528 }
								condition = { type = area value = 538 }
								condition = { type = area value = 444 }
								condition = { type = area value = 505 }
								condition = { type = area value = 464 }
								condition = { type = area value = 455 }
								condition = { type = area value = 245 }
								condition = { type = area value = 314 }
								condition = { type = province value = 358 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 455 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 455 }
								condition = { type = area value = 320 }
								condition = { type = area value = 245 }
								condition = { type = area value = 449 }
								condition = { type = area value = 464 }
								condition = { type = province value = 360 }
								condition = { type = province value = 462 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 464 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 464 }
								condition = { type = area value = 455 }
								condition = { type = area value = 449 }
								condition = { type = area value = 505 }
								condition = { type = area value = 468 }
								condition = { type = province value = 358 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 468 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 468 }
								condition = { type = area value = 464 }
								condition = { type = area value = 505 }
								condition = { type = area value = 490 }
								condition = { type = area value = 472 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 472 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 472 }
								condition = { type = area value = 468 }
								condition = { type = area value = 490 }
								condition = { type = area value = 481 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 480 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 480 }
								condition = { type = area value = 481 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 481 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 481 }
								condition = { type = area value = 480 }
								condition = { type = area value = 472 }
								condition = { type = area value = 490 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 490 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 490 }
								condition = { type = area value = 481 }
								condition = { type = area value = 472 }
								condition = { type = area value = 468 }
								condition = { type = area value = 505 }
								condition = { type = area value = 496 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 496 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 496 }
								condition = { type = area value = 490 }
								condition = { type = area value = 505 }
								condition = { type = area value = 510 }
								condition = { type = area value = 750 }
								condition = { type = area value = 745 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 505 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 505 }
								condition = { type = area value = 468 }
								condition = { type = area value = 464 }
								condition = { type = area value = 449 }
								condition = { type = area value = 444 }
								condition = { type = area value = 538 }
								condition = { type = area value = 510 }
								condition = { type = area value = 496 }
								condition = { type = area value = 490 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 510 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 510 }
								condition = { type = area value = 496 }
								condition = { type = area value = 505 }
								condition = { type = area value = 538 }
								condition = { type = area value = 545 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 528 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 528 }
								condition = { type = area value = 375 }
								condition = { type = area value = 418 }
								condition = { type = area value = 548 }
								condition = { type = area value = 545 }
								condition = { type = area value = 538 }
								condition = { type = area value = 449 }
								condition = { type = area value = 437 }
								condition = { type = area value = 308 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 538 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 538 }
								condition = { type = area value = 510 }
								condition = { type = area value = 505 }
								condition = { type = area value = 444 }
								condition = { type = area value = 449 }
								condition = { type = area value = 528 }
								condition = { type = area value = 545 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 545 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 545 }
								condition = { type = area value = 510 }
								condition = { type = area value = 538 }
								condition = { type = area value = 528 }
								condition = { type = area value = 548 }
								condition = { type = area value = 555 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 548 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 548 }
								condition = { type = area value = 528 }
								condition = { type = area value = 418 }
								condition = { type = area value = 576 }
								condition = { type = area value = 555 }
								condition = { type = area value = 545 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 555 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 555 }
								condition = { type = area value = 545 }
								condition = { type = area value = 548 }
								condition = { type = area value = 576 }
								condition = { type = area value = 564 }
								condition = { type = area value = 560 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 560 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 560 }
								condition = { type = area value = 555 }
								condition = { type = area value = 599 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 564 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 564 }
								condition = { type = area value = 555 }
								condition = { type = area value = 576 }
								condition = { type = area value = 592 }
								condition = { type = area value = 610 }
								condition = { type = area value = 606 }
								condition = { type = area value = 599 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 574 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 574 }
								condition = { type = area value = 576 }
								condition = { type = area value = 413 }
								condition = { type = province value = 417 }
								condition = { type = area value = 406 }
								condition = { type = area value = 588 }
								condition = { type = area value = 592 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 576 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 576 }
								condition = { type = area value = 555 }
								condition = { type = area value = 548 }
								condition = { type = area value = 418 }
								condition = { type = area value = 413 }
								condition = { type = area value = 574 }
								condition = { type = area value = 588 }
								condition = { type = area value = 592 }
								condition = { type = area value = 564 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 588 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 588 }
								condition = { type = area value = 576 }
								condition = { type = area value = 574 }
								condition = { type = area value = 406 }
								condition = { type = area value = 400 }
								condition = { type = area value = 610 }
								condition = { type = area value = 592 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 592 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 592 }
								condition = { type = area value = 588 }
								condition = { type = area value = 610 }
								condition = { type = area value = 564 }
								condition = { type = area value = 576 }
								condition = { type = area value = 574 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 599 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 599 }
								condition = { type = area value = 564 }
								condition = { type = area value = 606 }
								condition = { type = area value = 676 }
								condition = { type = area value = 560 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 606 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 606 }
								condition = { type = area value = 599 }
								condition = { type = area value = 564 }
								condition = { type = area value = 610 }
								condition = { type = area value = 617 }
								condition = { type = area value = 618 }
								condition = { type = area value = 676 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 610 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 610 }
								condition = { type = area value = 612 }
								condition = { type = area value = 617 }
								condition = { type = area value = 606 }
								condition = { type = area value = 564 }
								condition = { type = area value = 592 }
								condition = { type = area value = 588 }
								condition = { type = area value = 400 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 612 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 612 }
								condition = { type = area value = 400 }
								condition = { type = area value = 610 }
								condition = { type = area value = 617 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 617 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 617 }
								condition = { type = area value = 612 }
								condition = { type = area value = 610 }
								condition = { type = area value = 606 }
								condition = { type = area value = 618 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 618 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 618 }
								condition = { type = area value = 617 }
								condition = { type = area value = 606 }
								condition = { type = area value = 624 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 624 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 624 }
								condition = { type = area value = 618 }
								condition = { type = area value = 627 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 627 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 627 }
								condition = { type = area value = 624 }
								condition = { type = area value = 661 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 636 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 636 }
								condition = { type = area value = 661 }
								condition = { type = area value = 644 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 644 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 644 }
								condition = { type = area value = 636 }
								condition = { type = area value = 661 }
								condition = { type = area value = 685 }
								condition = { type = area value = 690 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 650 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 650 }
								condition = { type = area value = 690 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 661 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 661 }
								condition = { type = area value = 627 }
								condition = { type = area value = 636 }
								condition = { type = area value = 644 }
								condition = { type = area value = 685 }
								condition = { type = area value = 681 }
								condition = { type = area value = 668 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 668 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 668 }
								condition = { type = area value = 676 }
								condition = { type = area value = 681 }
								condition = { type = area value = 661 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 676 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 676 }
								condition = { type = area value = 599 }
								condition = { type = area value = 606 }
								condition = { type = area value = 668 }
								condition = { type = area value = 681 }
								condition = { type = area value = 705 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 681 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 681 }
								condition = { type = area value = 705 }
								condition = { type = area value = 676 }
								condition = { type = area value = 668 }
								condition = { type = area value = 661 }
								condition = { type = area value = 685 }
								condition = { type = area value = 690 }
								condition = { type = area value = 713 }
								condition = { type = area value = 736 }
								condition = { type = area value = 750 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 685 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 685 }
								condition = { type = area value = 690 }
								condition = { type = area value = 681 }
								condition = { type = area value = 661 }
								condition = { type = area value = 664 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 690 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 690 }
								condition = { type = area value = 650 }
								condition = { type = area value = 713 }
								condition = { type = area value = 681 }
								condition = { type = area value = 661 }
								condition = { type = area value = 685 }
								condition = { type = area value = 664 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 705 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 705 }
								condition = { type = area value = 750 }
								condition = { type = area value = 676 }
								condition = { type = area value = 681 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 713 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 713 }
								condition = { type = area value = 690 }
								condition = { type = area value = 681 }
								condition = { type = area value = 736 }
								condition = { type = area value = 770 }
								condition = { type = area value = 724 }
								condition = { type = area value = 787 }
								condition = { type = area value = 720 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 720 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 720 }
								condition = { type = area value = 787 }
								condition = { type = area value = 713 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 724 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 724 }
								condition = { type = area value = 787 }
								condition = { type = area value = 770 }
								condition = { type = area value = 713 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 736 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 736 }
								condition = { type = area value = 750 }
								condition = { type = area value = 681 }
								condition = { type = area value = 713 }
								condition = { type = area value = 770 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 745 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 745 }
								condition = { type = area value = 496 }
								condition = { type = area value = 750 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 750 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 750 }
								condition = { type = area value = 745 }
								condition = { type = area value = 496 }
								condition = { type = area value = 705 }
								condition = { type = area value = 681 }
								condition = { type = area value = 736 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 756 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 756 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 770 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 770 }
								condition = { type = area value = 736 }
								condition = { type = area value = 713 }
								condition = { type = area value = 724 }
								condition = { type = area value = 787 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 787 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 787 }
								condition = { type = area value = 720 }
								condition = { type = area value = 713 }
								condition = { type = area value = 724 }
								condition = { type = area value = 770 }
								condition = { type = area value = 791 }
								condition = { type = area value = 800 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 791 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 791 }
								condition = { type = area value = 787 }
								condition = { type = area value = 800 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 800 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 800 }
								condition = { type = area value = 787 }
								condition = { type = area value = 791 }
								condition = { type = area value = 803 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 803 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 803 }
								condition = { type = area value = 800 }
								condition = { type = area value = 807 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 807 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 807 }
								condition = { type = area value = 803 }
								condition = { type = area value = 811 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 811 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 811 }
								condition = { type = area value = 803 }
								condition = { type = area value = 818 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 818 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 818 }
								condition = { type = area value = 811 }
								condition = { type = area value = 824 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 824 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 824 }
								condition = { type = area value = 818 }
								condition = { type = area value = 828 }
								condition = { type = area value = 831 }
								condition = { type = area value = 840 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 827 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 827 }
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 828 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 828 }
								condition = { type = area value = 824 }
								condition = { type = area value = 832 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 832 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 832 }
								condition = { type = area value = 824 }
								condition = { type = area value = 828 }
								condition = { type = area value = 840 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 840 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 840 }
								condition = { type = area value = 832 }
								condition = { type = area value = 824 }
								condition = { type = area value = 842 }
								condition = { type = area value = 846 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 842 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 842 }
								condition = { type = area value = 840 }
								condition = { type = area value = 180 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 846 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = or
								condition = { type = area value = 846 }
								condition = { type = area value = 840 }
							}
						}
					}
				}
				condition = { type = and
					condition = { type = area value = 848 }
					condition = { type = owner
						condition = { type = capital
							condition = { type = area value = 848 }
						}
					}
				}
			}
			factor = 2
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = region value = Asia_Minor }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = area value = 618 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 599 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 340 } }
							condition = { type = not value = { type = area value = 335 } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 791 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Balkan }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
							condition = { type = not value = { type = area value = 811 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 449 } }
							condition = { type = not value = { type = area value = 455 } }
							condition = { type = not value = { type = area value = 437 } }
							condition = { type = not value = { type = area value = 314 } }
							condition = { type = not value = { type = area value = 245 } }
							condition = { type = not value = { type = area value = 444 } }
							condition = { type = not value = { type = area value = 505 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 510 } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 599 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 676 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Britain }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = area value = 1 } }
							condition = { type = not value = { type = area value = 270 } }
							condition = { type = not value = { type = area value = 298 } }
							condition = { type = not value = { type = area value = 310 } }
							condition = { type = not value = { type = area value = 87 } }
							condition = { type = not value = { type = area value = 127 } }
							condition = { type = not value = { type = area value = 93 } }
							condition = { type = not value = { type = area value = 112 } }
							condition = { type = not value = { type = area value = 101 } }
							condition = { type = not value = { type = area value = 109 } }
							condition = { type = not value = { type = area value = 215 } }
							condition = { type = not value = { type = area value = 201 } }
							condition = { type = not value = { type = area value = 189 } }
							condition = { type = not value = { type = area value = 193 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Eastern_Europe }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 676 } }
							condition = { type = not value = { type = area value = 681 } }
							condition = { type = not value = { type = area value = 705 } }
							condition = { type = not value = { type = area value = 750 } }
							condition = { type = not value = { type = area value = 745 } }
							condition = { type = not value = { type = area value = 455 } }
							condition = { type = not value = { type = area value = 320 } }
							condition = { type = not value = { type = area value = 245 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = France }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 310 } }
							condition = { type = not value = { type = area value = 298 } }
							condition = { type = not value = { type = area value = 270 } }
							condition = { type = not value = { type = area value = 827 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Germany }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 464 } }
							condition = { type = not value = { type = area value = 505 } }
							condition = { type = not value = { type = area value = 468 } }
							condition = { type = not value = { type = province value = 501 } }
							condition = { type = not value = { type = province value = 502 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Italy }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = area value = 827 } }
							condition = { type = not value = { type = area value = 203 } }
							condition = { type = not value = { type = area value = 172 } }
							condition = { type = not value = { type = area value = 180 } }
							condition = { type = not value = { type = area value = 824 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 811 } }
							condition = { type = not value = { type = area value = 807 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 756 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Middle_East }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 538 } }
							condition = { type = not value = { type = area value = 510 } }
							condition = { type = not value = { type = area value = 787 } }
							condition = { type = not value = { type = area value = 791 } }
							condition = { type = not value = { type = area value = 800 } }
							condition = { type = not value = { type = area value = 803 } }
							condition = { type = not value = { type = area value = 807 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Netherlands }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 201 } }
							condition = { type = not value = { type = area value = 189 } }
							condition = { type = not value = { type = area value = 193 } }
							condition = { type = not value = { type = area value = 528 } }
							condition = { type = not value = { type = area value = 375 } }
							condition = { type = not value = { type = area value = 413 } }
							condition = { type = not value = { type = area value = 381 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = North_Africa }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = North_Africa } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 545 } }
							condition = { type = not value = { type = area value = 560 } }
							condition = { type = not value = { type = area value = 555 } }
							condition = { type = not value = { type = area value = 564 } }
							condition = { type = not value = { type = area value = 606 } }
							condition = { type = not value = { type = area value = 676 } }
							condition = { type = not value = { type = area value = 720 } }
							condition = { type = not value = { type = area value = 713 } }
							condition = { type = not value = { type = area value = 724 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Russia }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Asia_Minor } }
							condition = { type = not value = { type = region value = Balkan } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Middle_East } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 528 } }
							condition = { type = not value = { type = area value = 308 } }
							condition = { type = not value = { type = area value = 310 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Scandinavia }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = Eastern_Europe } }
							condition = { type = not value = { type = region value = Germany } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Russia } }
							condition = { type = not value = { type = region value = Scandinavia } }
							condition = { type = not value = { type = area value = 93 } }
							condition = { type = not value = { type = area value = 112 } }
							condition = { type = not value = { type = area value = 101 } }
						}
					}
				}
				condition = { type = and
					condition = { type = region value = Spain }
					condition = { type = owner
						condition = { type = capital
							condition = { type = not value = { type = region value = Britain } }
							condition = { type = not value = { type = region value = France } }
							condition = { type = not value = { type = region value = Italy } }
							condition = { type = not value = { type = region value = Netherlands } }
							condition = { type = not value = { type = region value = Spain } }
							condition = { type = not value = { type = area value = 848 } }
							condition = { type = not value = { type = area value = 846 } }
							condition = { type = not value = { type = area value = 842 } }
							condition = { type = not value = { type = area value = 840 } }
							condition = { type = not value = { type = area value = 832 } }
							condition = { type = not value = { type = area value = 824 } }
							condition = { type = not value = { type = area value = 828 } }
							condition = { type = not value = { type = area value = 818 } }
							condition = { type = not value = { type = area value = 827 } }
						}
					}
				}
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = catholic }
			condition = { type = same_religion }
			factor = 4
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = religion value = catholic }
			condition = { type = or
				condition = { type = ruler_religion value = moslem }
				condition = { type = ruler_religion value = pagan }
				condition = { type = owner
					condition = { type = realm_ruler
						condition = { type = or
							condition = { type = religion value = moslem }
							condition = { type = religion value = pagan }
						}
					}
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = crusade }
			condition = { type = or
				condition = { type = religion value = moslem }
				condition = { type = religion value = pagan }
			}
			condition = { type = ruler_religion value = catholic }
			condition = { type = not value = { type = same_religion } }
			condition = { type = or
				condition = { type = region value = Spain }
				condition = { type = region value = Scandinavia }
				condition = { type = region value = Russia }
				condition = { type = region value = Eastern_Europe }
				condition = { type = region value = Germany }
				condition = { type = region value = Italy }
			}
			factor = 2
		}
		modifier = {
			condition = { type = has_improvement value = { traininggrounds = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { templar_house = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = has_improvement value = { waracademy = yes } }
			factor = 1.5
		}
		modifier = {
			condition = { type = has_improvement value = { grand_palace = yes } }
			factor = 2
		}
		modifier = {
			condition = { type = has_improvement value = { roadnet = yes } }
			factor = 1.05
		}
		modifier = {
			condition = { type = has_improvement value = { extensive_roadnet = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { royal_post = yes } }
			factor = 1.25
		}
		modifier = {
			condition = { type = has_improvement value = { court_of_justice = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { small_castle = yes } }
			factor = 1.05
		}
		modifier = {
			condition = { type = has_improvement value = { medium_castle = yes } }
			factor = 1.1
		}
		modifier = {
			condition = { type = has_improvement value = { large_castle = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = has_improvement value = { huge_castle = yes } }
			factor = 1.25
		}
		modifier = {
			condition = { type = has_improvement value = { thieves_guild = yes } }
			factor = 0.85
		}
		modifier = {
			condition = { type = has_improvement value = { smugglers_ring = yes } }
			factor = 0.8
		}
		modifier = {
			condition = { type = has_improvement value = { highway_robber_band = yes } }
			factor = 0.75
		}
		modifier = {
			condition = { type = has_province_effect value = { struggling = yes } }
			factor = 0.85
		}
		modifier = {
			condition = { type = has_province_effect value = { poor = yes } }
			factor = 0.9
		}
		modifier = {
			condition = { type = has_province_effect value = { rich = yes } }
			factor = 1.15
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.8 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = regiment_mobilized }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_intrigue value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_intrigue value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_intrigue value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_intrigue value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_stewardship value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_stewardship value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_stewardship value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_stewardship value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 2 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = ruler_diplomacy value = 6 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 9 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 12 }
			factor = 1.1
		}
		modifier = {
			condition = { type = ruler_diplomacy value = 15 }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = generous }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = cruel }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = merciful }
			factor = 1.15
		}
		modifier = {
			condition = { type = trait value = arbitrary }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = just }
			factor = 1.15
		}
		modifier = {
			condition = { type = trait value = stutter }
			factor = 0.5
		}
		modifier = {
			condition = { type = trait value = intestinal_worm }
			factor = 3
		}
		modifier = {
			condition = { type = demesne value = GOLD }
			factor = 2
		}
		modifier = {
			condition = { type = demesne value = ILKH }
			factor = 2
		}
		modifier = {
			condition = { type = ai }
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 1 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 2 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			factor = 0.8
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			factor = 0.8
		}
	}

	action_a = { #Damn!
		effect = { type = add_province_effect value = looted }
		effect = { type = ruler_gold scale = -0.1 }
		effect = { type = peasant_loyalty value = -0.5 }
		effect = { type = burgher_loyalty value = -0.5 }
		effect = { type = clergy_loyalty value = -0.25 }
		effect = { type = noble_loyalty value = -0.5 }
	}
}

##############################################
##############################################
##                                          ##
## NEW ID RANGES ASSIGNED FOR FUTURE EVENTS ##
## ID RANGE 6300-6399 for use by Byakhiam   ##
## ID RANGE 6400-6499 for use by MrT        ##
##                                          ##
##############################################
##############################################

######################
# Byakhiam's range   #
# ID Range 6300-6399 #
######################

# King of jerusalem is wrong

character_event = {
	id = 6300

	picture = "event_death"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = title value = JERU }
		condition = { type = ai }
		condition = { type = not value = { type = atwar } }
		condition = { type = primary_heir condition = { type = is_alive } }
	}

	mean_time_to_happen = {
		days = 30
	}

	immidiate = {
		effect = { type = trigger for = liege value = 6456 }
		effect = { type = independence }
		effect = { type = death }
	}
}

#ID free 6301-6399

#######################
# Chris (MrT)'s range #
# ID Range 6400-6449  #
#######################

province_event = { #Religious tensions are rising in your realm. The peasants say they will not obey a ruler who does not share their faith.

	id = 6400
	picture = "event_crime"

	trigger = {
		condition = { type = not value = { type = has_province_effect value = { revolt = yes } } }
		condition = { type = not value = { type = has_province_effect value = { heretic = yes } } }
		condition = { type = peasant_power value  = 0.25 }
		condition = { type = or
			condition = { type = and
				condition = { type = religion value = catholic }
				condition = { type = not value = { type = ruler_religion value = catholic } }
			}
			condition = { type = and
				condition = { type = religion value = orthodox }
				condition = { type = not value = { type = ruler_religion value = orthodox } }
			}
			condition = { type = and
				condition = { type = religion value = moslem }
				condition = { type = not value = { type = ruler_religion value = moslem } }
			}
			condition = { type = and
				condition = { type = religion value = pagan }
				condition = { type = not value = { type = ruler_religion value = pagan } }
			}
			condition = { type = and
				condition = { type = religion value = jewish }
				condition = { type = not value = { type = ruler_religion value = jewish } }
			}
		}
		condition = { type = not value = { type = trait value = excommunicated } }
	}

	mean_time_to_happen = {

		months = 900

		modifier = {
			condition = { type = not value = { type = same_religion } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = same_culture } }
			factor = 0.9
		}
		modifier = {
			condition = { type = peasant_power value = 0.35 }
			factor = 0.9
		}
		modifier = {
			condition = { type = peasant_power value = 0.45 }
			factor = 0.9
		}
		modifier = {
			condition = { type = peasant_power value = 0.55 }
			factor = 0.8
		}
		modifier = {
			condition = { type = peasant_power value = 0.65 }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.9 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.75 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.5 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = peasant_loyalty value = 0.25 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = orthodox }
			factor = 2
		}
		modifier = {
			condition = { type = religion value = orthodox }
			condition = { type = ruler_religion value = catholic }
			factor = 5
		}
		modifier = {
			condition = { type = region value = Spain }
			factor = 2
		}
		modifier = {
			condition = { type = regiment_mobilized }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = heretic }
			factor = 2
		}
		modifier = {
			condition = { type = trait value = sceptical }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = zealous }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = crusader }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = detached_priest }
			factor = 1.05
		}
		modifier = {
			condition = { type = trait value = martial_cleric }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = scholarly_theologian }
			factor = 0.85
		}
		modifier = {
			condition = { type = trait value = mastermind_theologian }
			factor = 0.9
		}
		modifier = {
			condition = { type = owner
				condition = { type = not
					value = { type = chaplain_csc
						condition = { type = chaplain } #if no chaplain then things get messy fast!
					}
				}
			}
			factor = 0.1
		}
		modifier = {
			condition = { type = ai }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 2 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 3 }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 4 }
			factor = 0.75
		}
	}

	action_a = { #That's bad!
		effect = { type = peasant_loyalty value = -0.25 }
		effect = { type = random chance = 66
			effect = { type = peasant_loyalty value = -0.25 }
		}
		effect = { type = random chance = 33
			effect = { type = peasant_loyalty value = -0.25 }
		}
		effect = { type = random chance = 10
			effect = { type = add_province_effect value = revolt }
		}
	}
	action_b = { #I will crush them!
		effect = { type = add_province_effect value = looted }
		effect = { type = ruler_piety scale = 0.5 }
		effect = { type = ruler_gold scale = -0.33 }
		effect = { type = random chance = 75
			effect = { type = add_province_effect value = revolt }
		}
		effect = { type = random chance = 50
			effect = { type = set_to_realm_religion }
		}
	}
}

province_event = { #Religious tensions are rising in your realm. The burghers say they will not obey a ruler who does not share their faith.

	id = 6401
	picture = "event_town"

	trigger = {
		condition = { type = not value = { type = has_province_effect value = { revolt = yes } } }
		condition = { type = not value = { type = has_province_effect value = { heretic = yes } } }
		condition = { type = burgher_power value  = 0.25 }
		condition = { type = or
			condition = { type = and
				condition = { type = religion value = catholic }
				condition = { type = not value = { type = ruler_religion value = catholic } }
			}
			condition = { type = and
				condition = { type = religion value = orthodox }
				condition = { type = not value = { type = ruler_religion value = orthodox } }
			}
			condition = { type = and
				condition = { type = religion value = moslem }
				condition = { type = not value = { type = ruler_religion value = moslem } }
			}
			condition = { type = and
				condition = { type = religion value = pagan }
				condition = { type = not value = { type = ruler_religion value = pagan } }
			}
			condition = { type = and
				condition = { type = religion value = jewish }
				condition = { type = not value = { type = ruler_religion value = jewish } }
			}
		}
		condition = { type = not value = { type = trait value = excommunicated } }
	}

	mean_time_to_happen = {

		months = 900

		modifier = {
			condition = { type = not value = { type = same_religion } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = same_culture } }
			factor = 0.9
		}
		modifier = {
			condition = { type = burgher_power value = 0.35 }
			factor = 0.9
		}
		modifier = {
			condition = { type = burgher_power value = 0.45 }
			factor = 0.9
		}
		modifier = {
			condition = { type = burgher_power value = 0.55 }
			factor = 0.8
		}
		modifier = {
			condition = { type = burgher_power value = 0.65 }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.9 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.75 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.5 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = burgher_loyalty value = 0.25 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = orthodox }
			factor = 2
		}
		modifier = {
			condition = { type = religion value = orthodox }
			condition = { type = ruler_religion value = catholic }
			factor = 5
		}
		modifier = {
			condition = { type = region value = Spain }
			factor = 2
		}
		modifier = {
			condition = { type = regiment_mobilized }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = heretic }
			factor = 2
		}
		modifier = {
			condition = { type = trait value = sceptical }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = zealous }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = crusader }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = detached_priest }
			factor = 1.05
		}
		modifier = {
			condition = { type = trait value = martial_cleric }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = scholarly_theologian }
			factor = 0.85
		}
		modifier = {
			condition = { type = trait value = mastermind_theologian }
			factor = 0.9
		}
		modifier = {
			condition = { type = owner
				condition = { type = not
					value = { type = chaplain_csc
						condition = { type = chaplain } #if no chaplain then things get messy fast!
					}
				}
			}
			factor = 0.1
		}
		modifier = {
			condition = { type = ai }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 2 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 3 }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 4 }
			factor = 0.75
		}
	}

	action_a = { #That's bad!
		effect = { type = burgher_loyalty value = -0.25 }
		effect = { type = random chance = 66
			effect = { type = burgher_loyalty value = -0.25 }
		}
		effect = { type = random chance = 33
			effect = { type = burgher_loyalty value = -0.25 }
		}
		effect = { type = random chance = 10
			effect = { type = add_province_effect value = revolt }
		}
	}
	action_b = { #I will crush them!
		effect = { type = add_province_effect value = looted }
		effect = { type = ruler_piety scale = 0.5 }
		effect = { type = ruler_gold scale = -0.5 }
		effect = { type = random chance = 75
			effect = { type = add_province_effect value = revolt }
		}
		effect = { type = random chance = 50
			effect = { type = set_to_realm_religion }
		}
	}
}
province_event = { #Religious tensions are rising in your realm. The local clergy preach a faith that conflicts with your own.

	id = 6402
	picture = "event_heretic"

	trigger = {
		condition = { type = not value = { type = has_province_effect value = { revolt = yes } } }
		condition = { type = not value = { type = has_province_effect value = { heretic = yes } } }
		condition = { type = clergy_power value  = 0.25 }
		condition = { type = or
			condition = { type = and
				condition = { type = religion value = catholic }
				condition = { type = not value = { type = ruler_religion value = catholic } }
			}
			condition = { type = and
				condition = { type = religion value = orthodox }
				condition = { type = not value = { type = ruler_religion value = orthodox } }
			}
			condition = { type = and
				condition = { type = religion value = moslem }
				condition = { type = not value = { type = ruler_religion value = moslem } }
			}
			condition = { type = and
				condition = { type = religion value = pagan }
				condition = { type = not value = { type = ruler_religion value = pagan } }
			}
			condition = { type = and
				condition = { type = religion value = jewish }
				condition = { type = not value = { type = ruler_religion value = jewish } }
			}
		}
		condition = { type = not value = { type = trait value = excommunicated } }
	}

	mean_time_to_happen = {

		months = 900

		modifier = {
			condition = { type = not value = { type = same_religion } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = same_culture } }
			factor = 0.9
		}
		modifier = {
			condition = { type = clergy_power value = 0.35 }
			factor = 0.9
		}
		modifier = {
			condition = { type = clergy_power value = 0.45 }
			factor = 0.9
		}
		modifier = {
			condition = { type = clergy_power value = 0.55 }
			factor = 0.8
		}
		modifier = {
			condition = { type = clergy_power value = 0.65 }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.9 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.75 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.5 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = clergy_loyalty value = 0.25 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = orthodox }
			factor = 2
		}
		modifier = {
			condition = { type = religion value = orthodox }
			condition = { type = ruler_religion value = catholic }
			factor = 5
		}
		modifier = {
			condition = { type = region value = Spain }
			factor = 2
		}
		modifier = {
			condition = { type = regiment_mobilized }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = heretic }
			factor = 2
		}
		modifier = {
			condition = { type = trait value = sceptical }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = zealous }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = crusader }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = detached_priest }
			factor = 1.05
		}
		modifier = {
			condition = { type = trait value = martial_cleric }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = scholarly_theologian }
			factor = 0.85
		}
		modifier = {
			condition = { type = trait value = mastermind_theologian }
			factor = 0.9
		}
		modifier = {
			condition = { type = owner
				condition = { type = not
					value = { type = chaplain_csc
						condition = { type = chaplain } #if no chaplain then things get messy fast!
					}
				}
			}
			factor = 0.1
		}
		modifier = {
			condition = { type = ai }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 2 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 3 }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 4 }
			factor = 0.75
		}
	}

	action_a = { #That's bad!
		effect = { type = clergy_loyalty value = -0.25 }
		effect = { type = random chance = 66
			effect = { type = clergy_loyalty value = -0.25 }
		}
		effect = { type = random chance = 33
			effect = { type = clergy_loyalty value = -0.25 }
		}
		effect = { type = random chance = 10
			effect = { type = add_province_effect value = revolt }
		}
	}
	action_b = { #I will crush them!
		effect = { type = add_province_effect value = looted }
		effect = { type = ruler_piety scale = 0.75 }
		effect = { type = ruler_gold scale = -0.33 }
		effect = { type = random chance = 80
			effect = { type = add_province_effect value = revolt }
		}
		effect = { type = random chance = 40
			effect = { type = set_to_realm_religion }
		}
	}
}
province_event = { #Religious tensions are rising in your realm. The nobles say they will not obey a ruler who does not share their faith.

	id = 6403
	picture = "event_crime"

	trigger = {
		condition = { type = not value = { type = has_province_effect value = { revolt = yes } } }
		condition = { type = not value = { type = has_province_effect value = { heretic = yes } } }
		condition = { type = noble_power value  = 0.25 }
		condition = { type = or
			condition = { type = and
				condition = { type = religion value = catholic }
				condition = { type = not value = { type = ruler_religion value = catholic } }
			}
			condition = { type = and
				condition = { type = religion value = orthodox }
				condition = { type = not value = { type = ruler_religion value = orthodox } }
			}
			condition = { type = and
				condition = { type = religion value = moslem }
				condition = { type = not value = { type = ruler_religion value = moslem } }
			}
			condition = { type = and
				condition = { type = religion value = pagan }
				condition = { type = not value = { type = ruler_religion value = pagan } }
			}
			condition = { type = and
				condition = { type = religion value = jewish }
				condition = { type = not value = { type = ruler_religion value = jewish } }
			}
		}
		condition = { type = not value = { type = trait value = excommunicated } }
	}

	mean_time_to_happen = {

		months = 900

		modifier = {
			condition = { type = not value = { type = same_religion } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = same_culture } }
			factor = 0.9
		}
		modifier = {
			condition = { type = noble_power value = 0.35 }
			factor = 0.9
		}
		modifier = {
			condition = { type = noble_power value = 0.45 }
			factor = 0.9
		}
		modifier = {
			condition = { type = noble_power value = 0.55 }
			factor = 0.8
		}
		modifier = {
			condition = { type = noble_power value = 0.65 }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.9 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.75 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.5 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = noble_loyalty value = 0.25 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = religion value = catholic }
			condition = { type = ruler_religion value = orthodox }
			factor = 2
		}
		modifier = {
			condition = { type = religion value = orthodox }
			condition = { type = ruler_religion value = catholic }
			factor = 5
		}
		modifier = {
			condition = { type = region value = Spain }
			factor = 2
		}
		modifier = {
			condition = { type = regiment_mobilized }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = heretic }
			factor = 2
		}
		modifier = {
			condition = { type = trait value = sceptical }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = zealous }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = crusader }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = detached_priest }
			factor = 1.05
		}
		modifier = {
			condition = { type = trait value = martial_cleric }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = scholarly_theologian }
			factor = 0.85
		}
		modifier = {
			condition = { type = trait value = mastermind_theologian }
			factor = 0.9
		}
		modifier = {
			condition = { type = owner
				condition = { type = not
					value = { type = chaplain_csc
						condition = { type = chaplain } #if no chaplain then things get messy fast!
					}
				}
			}
			factor = 0.1
		}
		modifier = {
			condition = { type = ai }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = not value = { type = difficulty value = 2 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 3 }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = ai } }
			condition = { type = difficulty value = 4 }
			factor = 0.75
		}
	}

	action_a = { #That's bad!
		effect = { type = noble_loyalty value = -0.25 }
		effect = { type = random chance = 66
			effect = { type = noble_loyalty value = -0.25 }
		}
		effect = { type = random chance = 33
			effect = { type = noble_loyalty value = -0.25 }
		}
		effect = { type = random chance = 10
			effect = { type = add_province_effect value = revolt }
		}
	}
	action_b = { #I will crush them!
		effect = { type = add_province_effect value = looted }
		effect = { type = ruler_piety scale = 0.5 }
		effect = { type = ruler_gold scale = -0.75 }
		effect = { type = random chance = 75
			effect = { type = add_province_effect value = revolt }
		}
		effect = { type = random chance = 75
			effect = { type = set_to_realm_religion }
		}
	}
}

#####################################################
# Vassals with low loyalty may become opportunistic #
#####################################################


character_event = { #My liege and I are at very serious odds with one another!

	id = 6404
	picture = "event_claim"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = not value = { type = loyalty value = 0.06 } }
	}

	mean_time_to_happen = {

		months = 24

		modifier = {
			condition = { type = atwar }
			factor = 10
		}
		modifier = {
			condition = { type = duchy }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = atwar } }
			condition = { type = liege
				condition = { type = atwar }
			}
			factor = 0.1
		}
	}

	action_a = { #Now is the time to strike!
		effect = { type = piety scale = -1 }
		effect = { type = declare_war value = liege } #Note that you will still have to make your own claim to exact more than just cash or for ce him to acknowledge your titles
		effect = { type = loyalty value = 1.0 }
		effect = { type = trigger for = liege value = 6405 } #notifier
	}
	action_b = { #I am willing to reconcile...for now.
		effect = { type = loyalty value = 0.5 }
		effect = { type = piety scale = 0.5 }
		effect = { type = trigger for = liege value = 6406 } #notifier
	}
}

character_event = { #A vassal whose loyalty has been questionable has now broken free from your realm and has declared war!

	id = 6405
	picture = "event_battle"

	#triggered by 6404A

	action_a = {#Damn!
		effect = { type = prestige scale = -0.5 }
	}
}

character_event = { #A vassal whose loyalty has been questionable is trying to reconcile with you.

	id = 6406
	picture = "event_default"

	#triggered by 6404B

	action_a = {#That's nice!
		effect = { type = prestige scale = 0.25 }
	}
}


# ID free 6407-6449


#############################################################
#############################################################
##                                                         ##
##  CIVIL WAR AND OTHER GENERALLY DISRUPTIVE VASSAL-LIEGE  ##
##  RELATIONSHIP EVENTS. REPLACES OLD BREAK FREE EVENT TOO ##
##  ID RANGE 6450-6499                                     ##
##                                                         ##
#############################################################
#############################################################

# PHASE ONE
# Identify and mark a vassal who might spark or participate in a civil war
# or who is distant from his liege and might declare independence

character_event = {  #Now might be the time to begin considering my future relationship with my liege.
	id = 6451

	picture = "event_claim"

	trigger = {
		#######################################################
		# PRECONDITIONS THAT MUST BE SATISFIED NO MATTER WHAT #
		#######################################################
		condition = { type = is_vassal }
		condition = { type = age value = 16 }						#character must not be underage (a regency)
		condition = { type = not value = { type = trait value = intestinal_worm } }	#re-defined trait marker for rebelliousness so this character has already had this event
		condition = { type = not value = { type = trait value = modest } }		#this character has already had the event and chosen to be loyal to ruler. He will only reconsider if the realm is in civil war.
		condition = { type = prestige value = 25 }					#minimum level of prestige that vassal must have before thinking about it
		condition = { type = liege
			condition = { type = is_independent }					#only vassal of an independent ruler considers this
			condition = { type = not value = { type = prestige value = 5000 } }	#and won't if liege has very high prestige
		}
		###########################################################################
		# THERE ARE FIVE DISTINCT INSTANCES WHEN A VASSAL MIGHT BECOME REBELLIOUS #
		###########################################################################
		condition = { type = or

			##############
			# INSTANCE 1 #
			##############
			# Either the liege has already been marked as having his realm under duress and at risk of civil war (see event ID 6452 and 6454)
			condition = { type = and
				condition = { type = not value = { type = loyalty value = 1.0 } }
				condition = { type = liege
					condition = { type = trait value = stutter }			#stutter trait has been redefined to Realm Duress
				}
			}

			##############
			# INSTANCE 2 #
			##############
			# ...or the vassal is not the same religion as his liege
			condition = { type = and
				condition = { type = religion value = catholic }
				condition = { type = not
					value = { type = liege
						condition = { type = religion value = catholic }
					}
				}
			}
			condition = { type = and
				condition = { type = religion value = orthodox }
				condition = { type = not
					value = { type = liege
						condition = { type = religion value = orthodox }
					}
				}
			}
			condition = { type = and
				condition = { type = religion value = moslem }
				condition = { type = not
					value = { type = liege
						condition = { type = religion value = moslem }
					}
				}
			}
			condition = { type = and
				condition = { type = religion value = pagan }
				condition = { type = not
					value = { type = liege
						condition = { type = religion value = pagan }
					}
				}
			}

			##############
			# INSTANCE 3 #
			##############
			# ...or the vassal has high personal intrigue and good court intrigue
			condition = { type = and
				condition = { type = not value = { type = loyalty value = 1.0 } }
				condition = { type = intrigue value = 12 }	#minimum personal value so break tests to conserve CPU cycles if lower than this
				condition = { type = or				#NOW test for very high personal intrigue or a court total value of 26 or more
					condition = { type = intrigue value = 18 } # personal intrigue 18 or more makes spymaster irrelevant
					#tests for court total 26 or more
					condition = { type = spymaster_csc
						condition = { type = intrigue value = 14 }
					}
					condition = { type = and
						condition = { type = intrigue value = 13 }
						condition = { type = spymaster_csc
							condition = { type = intrigue value = 13 }
						}
					}
					condition = { type = and
						condition = { type = intrigue value = 14 }
						condition = { type = spymaster_csc
							condition = { type = intrigue value = 12 }
						}
					}
					condition = { type = and
						condition = { type = intrigue value = 15 }
						condition = { type = spymaster_csc
							condition = { type = intrigue value = 11 }
						}
					}
					condition = { type = and
						condition = { type = intrigue value = 16 }
						condition = { type = spymaster_csc
							condition = { type = intrigue value = 10 }
						}
					}
					condition = { type = and
						condition = { type = intrigue value = 17 }
						condition = { type = spymaster_csc
							condition = { type = intrigue value = 9 }
						}
					}
				}
			}

			##############
			# INSTANCE 4 #
			##############
			# ...or the liege is over max demesne limit or has really poor intrigue
			condition = { type = and
				condition = { type = not value = { type = loyalty value = 1.0 } }
				condition = { type = liege 									#all following is csc-switched to liege's court and is therefore also (implicitly) anded
				condition = { type = or
					condition = { type = not value = { type = efficiency value = 0.8 } }		#demesne efficiency <80% can lead to trouble
					condition = { type = not value = { type = intrigue value = 5 } }		#liege less than 5 intrigue can have trouble no matter what
					condition = { type = and							#now that we know liege has 5+ intrigue and isn't particularly over demesne limit...we test for CPU-heavy court conditions
						condition = { type = not value = { type = intrigue value = 13 } }	#liege with 13+ intrigue blocks this possibility and saves CPU cycles too)
						condition = { type = or
							condition = { type = not
								value = { type = spymaster_csc				#liege court with no spymaster is vulnerable
									condition = { type = intrigue value = 1 }
								}
							}
							#now test liege court total less than 14
							condition = { type = and
								condition = { type = not value = { type = intrigue value = 6 } }
								condition = { type = not
									value = { type = spymaster_csc
										condition = { type = intrigue value = 9 }
									}
								}
							}
							condition = { type = and
								condition = { type = not value = { type = intrigue value = 7 } }
								condition = { type = not
									value = { type = spymaster_csc
										condition = { type = intrigue value = 8 }
									}
								}
							}
							condition = { type = and
								condition = { type = not value = { type = intrigue value = 8 } }
								condition = { type = not
									value = { type = spymaster_csc
										condition = { type = intrigue value = 7 }
									}
								}
							}
							condition = { type = and
								condition = { type = not value = { type = intrigue value = 9 } }
								condition = { type = not
									value = { type = spymaster_csc
										condition = { type = intrigue value = 6 }
									}
								}
							}
							condition = { type = and
								condition = { type = not value = { type = intrigue value = 10 } }
								condition = { type = not
									value = { type = spymaster_csc
										condition = { type = intrigue value = 5 }
									}
								}
							}
							condition = { type = and
								condition = { type = not value = { type = intrigue value = 11 } }
								condition = { type = not
									value = { type = spymaster_csc
										condition = { type = intrigue value = 4 }
									}
								}
							}
							condition = { type = and
								condition = { type = not value = { type = intrigue value = 12 } }
								condition = { type = not
									value = { type = spymaster_csc
										condition = { type = intrigue value = 3 }
									}
								}
							}
						} #end or
					} #end and
				} #end or	
			} } #end csc and or and extra and conditions for instance 4


			##############
			# INSTANCE 5 #
			##############
			# ...or the vassal is distant from the liege
			# Note: this part of the trigger is the original trigger for the old distant vassal breaking free event that Byakhiam wrote.
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of instance 5 and condition
		} #end of the five instances or condition
	} #If I've counted correctly this should end the trigger.
		

	mean_time_to_happen = {
		months = 800

		modifier = {
			condition = { type = not							#Catholic vassal less likely to stir up trouble if catholic liege is on crusade
				value = { type = and
					condition = { type = religion value = catholic }
					condition = { type = liege
						condition = { type = religion value = catholic }
						condition = { type = not value = { type = on_crusade } }
					}
				}
			}
			factor = 3
		}
		modifier = {
			condition = { type = liege
				condition = { type = trait value = stutter } 	#liege is experiencing civil war already (instance 1)
			}
			factor = 0.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = atwar }			#liege is preoccupied
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = atwar }				#vassal is proccupied
			factor = 10
		}

		#Modifier for religion difference (instance 2)
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = liege condition = { type = not value = { type = religion value = catholic } } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = liege condition = { type = not value = { type = religion value = orthodox } } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege condition = { type = not value = { type = religion value = pagan } } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege condition = { type = not value = { type = religion value = moslem } } }
				}
			}
			factor = 0.2
		}

		#Prestige modifiers
		modifier = {
			condition = { type = prestige value = 125 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 250 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 500 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 1000 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 2000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = prestige value = 5000 }
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 250 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 500 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 1000 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 2000 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 3000 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 4000 }
			}
			factor = 1.25
		}
		#bonus for far-away vassals satisfying instance #5
		modifier = {
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of condition
			factor = 0.25
		}
		#Regional modifiers (instance 5) (from Byakhiam's orginial event)
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = germany }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = region value = north_africa } } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = asia_minor }
				condition = { type = region value = middle_east }
				condition = { type = region value = balkan }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = russia }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = north_africa }
				condition = { type = region value = balkan }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = spain }
				condition = { type = region value = germany }
				condition = { type = region value = italy }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = france }
				condition = { type = region value = italy }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = russia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = france }
				condition = { type = region value = britain }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = region value = middle_east } } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = spain }
				condition = { type = region value = britain }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = france }
				condition = { type = region value = italy }
				condition = { type = region value = netherlands }
				condition = { type = region value = balkan }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = region value = britain } } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
				condition = { type = region value = spain }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = france }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = spain }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = asia_minor }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = russia }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
			} } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
				condition = { type = region value = middle_east }
			} } }
			factor = 0.9
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
			} } }
			factor = 0.1
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = region value = germany } } }
			factor = 0.33
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = france }
			} } }
			factor = 0.66
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 0.9
		}

		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 0.8
		}

		#Modifiers for culture difference
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = culture value = lappish }
					condition = { type = liege condition = { type = not value = { type = culture value = lappish } } }
				}
				condition = { type = and
					condition = { type = culture value = norwegian }
					condition = { type = liege condition = { type = not value = { type = culture value = norwegian } } }
				}
				condition = { type = and
					condition = { type = culture value = swedish }
					condition = { type = liege condition = { type = not value = { type = culture value = swedish } } }
				}
				condition = { type = and
					condition = { type = culture value = scottish }
					condition = { type = liege condition = { type = not value = { type = culture value = scottish } } }
				}
				condition = { type = and
					condition = { type = culture value = saxon }
					condition = { type = liege condition = { type = not value = { type = culture value = saxon } } }
				}
				condition = { type = and
					condition = { type = culture value = irish }
					condition = { type = liege condition = { type = not value = { type = culture value = irish } } }
				}
				condition = { type = and
					condition = { type = culture value = welsh }
					condition = { type = liege condition = { type = not value = { type = culture value = welsh } } }
				}
				condition = { type = and
					condition = { type = culture value = english }
					condition = { type = liege condition = { type = not value = { type = culture value = english } } }
				}
				condition = { type = and
					condition = { type = culture value = finnish }
					condition = { type = liege condition = { type = not value = { type = culture value = finnish } } }
				}
				condition = { type = and
					condition = { type = culture value = prussian }
					condition = { type = liege condition = { type = not value = { type = culture value = prussian } } }
				}
				condition = { type = and
					condition = { type = culture value = lettigallish }
					condition = { type = liege condition = { type = not value = { type = culture value = lettigallish } } }
				}
				condition = { type = and
					condition = { type = culture value = lithuanian }
					condition = { type = liege condition = { type = not value = { type = culture value = lithuanian } } }
				}
				condition = { type = and
					condition = { type = culture value = german }
					condition = { type = liege condition = { type = not value = { type = culture value = german } } }
				}
				condition = { type = and
					condition = { type = culture value = dutch }
					condition = { type = liege condition = { type = not value = { type = culture value = dutch } } }
				}
				condition = { type = and
					condition = { type = culture value = frankish }
					condition = { type = liege condition = { type = not value = { type = culture value = frankish } } }
				}
				condition = { type = and
					condition = { type = culture value = norman }
					condition = { type = liege condition = { type = not value = { type = culture value = norman } } }
				}
				condition = { type = and
					condition = { type = culture value = basque }
					condition = { type = liege condition = { type = not value = { type = culture value = basque } } }
				}
				condition = { type = and
					condition = { type = culture value = castillan }
					condition = { type = liege condition = { type = not value = { type = culture value = castillan } } }
				}
				condition = { type = and
					condition = { type = culture value = catalan }
					condition = { type = liege condition = { type = not value = { type = culture value = catalan } } }
				}
				condition = { type = and
					condition = { type = culture value = italian }
					condition = { type = liege condition = { type = not value = { type = culture value = italian } } }
				}
				condition = { type = and
					condition = { type = culture value = latin }
					condition = { type = liege condition = { type = not value = { type = culture value = latin } } }
				}
				condition = { type = and
					condition = { type = culture value = hungarian }
					condition = { type = liege condition = { type = not value = { type = culture value = hungarian } } }
				}
				condition = { type = and
					condition = { type = culture value = southslavic }
					condition = { type = liege condition = { type = not value = { type = culture value = southslavic } } }
				}
				condition = { type = and
					condition = { type = culture value = russian }
					condition = { type = liege condition = { type = not value = { type = culture value = russian } } }
				}
				condition = { type = and
					condition = { type = culture value = greek }
					condition = { type = liege condition = { type = not value = { type = culture value = greek } } }
				}
				condition = { type = and
					condition = { type = culture value = georgian }
					condition = { type = liege condition = { type = not value = { type = culture value = georgian } } }
				}
				condition = { type = and
					condition = { type = culture value = armenian }
					condition = { type = liege condition = { type = not value = { type = culture value = armenian } } }
				}
				condition = { type = and
					condition = { type = culture value = alan }
					condition = { type = liege condition = { type = not value = { type = culture value = alan } } }
				}
				condition = { type = and
					condition = { type = culture value = cuman }
					condition = { type = liege condition = { type = not value = { type = culture value = cuman } } }
				}
				condition = { type = and
					condition = { type = culture value = pecheneg }
					condition = { type = liege condition = { type = not value = { type = culture value = pecheneg } } }
				}
				condition = { type = and
					condition = { type = culture value = turkish }
					condition = { type = liege condition = { type = not value = { type = culture value = turkish } } }
				}
				condition = { type = and
					condition = { type = culture value = muslim }
					condition = { type = liege condition = { type = not value = { type = culture value = muslim } } }
				}
				condition = { type = and
					condition = { type = culture value = persian }
					condition = { type = liege condition = { type = not value = { type = culture value = persian } } }
				}
				condition = { type = and
					condition = { type = culture value = mongol }
					condition = { type = liege condition = { type = not value = { type = culture value = mongol } } }
				}
				condition = { type = and
					condition = { type = culture value = polish }
					condition = { type = liege condition = { type = not value = { type = culture value = polish } } }
				}
				condition = { type = and
					condition = { type = culture value = bohemian }
					condition = { type = liege condition = { type = not value = { type = culture value = bohemian } } }
				}
				condition = { type = and
					condition = { type = culture value = portuguese }
					condition = { type = liege condition = { type = not value = { type = culture value = portuguese } } }
				}
			}
			factor = 0.5
		}

		#realm tier and situation modifiers
		modifier = {
			condition = { type = not value = { type = primary_heir }}			#already first in succession to something else (which will probably be bigger) so not very interested
			factor = 2
		}
		modifier = {
			condition = { type = duchy }
			factor = 0.75
		}
		modifier = {
			condition = { type = has_vassal }
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 1.0 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.8 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.6 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.4 } }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.2 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.05 } }
			}
			factor = 0.25
		}

		#loyalty modifiers
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.9 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.6 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.3 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.1 } }
			factor = 0.1
		}

		#high vassal stats and traits and other fun stuff
		modifier = {
			condition = { type = martial value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = martial value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = valorous }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = deceitful }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = honest }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = not value = { type = trait value = heretic } } }
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 0.25
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = not value = { type = duchy } }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = is_independent }
						condition = { type = or
							condition = { type = duchy }
							condition = { type = kingdom }
						}
					} }
				}
				condition = { type = and
					condition = { type = duchy }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = kingdom }
					} }
				}
			}
			factor = 10.0
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = trait value = pneumonia }
					condition = { type = trait value = plagueinfested }
					condition = { type = trait value = maniac }
					condition = { type = trait value = schizofrenia }
					condition = { type = trait value = kinslayer }
					condition = { type = trait value = excommunicated }
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = has_law value = { popular_law = yes } }
					condition = { type = has_law value = { royal_preorgatory_law = yes } }
				}
			}
			factor = 0.66
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { feudal_contract_law = yes } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { elective_law = yes } } }
			factor = 1.5
		}

		#liege personal stats modifiers
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 1 } }
			}
			factor = 0.5
		}

		#difficulty and AI modifiers
		modifier = {
			condition = { type = not value = { type = ai } }	#players don't need much help wreaking havoc on their rulers
			factor = 5
		}
		modifier = {
			condition = { type = difficulty value = 3 }		#hold AI realms together a bit more at higher difficulty levels
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 3 }		#ai will be fiesty with player on higher difficulties
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
	}

	action_a = { #I will begin plotting my treachery!
		ai_chance = 80
			modifier = {
				condition = { type = liege
					condition = { type = trait value = stutter }
				}
				factor = 5
			}
			modifier = {
				condition = { type = liege
					condition = { type = not value = { type = efficiency value = 1.0 } }
				}
				factor = 2
			}
			modifier = {
				condition = { type = liege
					condition = { type = not value = { type = efficiency value = 0.6 } }
				}
				factor = 2
			}
			modifier = {
				condition = { type = liege
					condition = { type = not value = { type = efficiency value = 0.1 } }
				}
				factor = 10
			}
			modifier = {
				condition = { type = intrigue value = 10 }
				factor = 1.15
			}
			modifier = {
				condition = { type = intrigue value = 13 }
				factor = 1.25
			}
			modifier = {
				condition = { type = intrigue value = 16 }
				factor = 1.5
			}
			#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
			modifier = {
				condition = { type = liege
					condition = { type = title value = BYZA }
				}
				factor = 2
			}
			modifier = {
				condition = { type = liege
					condition = { type = title value = GERM }
				}
				factor = 1.5
			}
		effect = { type = add_trait value = intestinal_worm }
		effect = { type = loyalty value = -0.5 }
		effect = { type = prestige value = 50 }
	}
	action_b = { #I will try to remain content...for now.
		ai_chance = 20
			modifier = {
				condition = { type = not value = { type = primary_heir }}			#already first in succession to something else (which will probably be bigger) so not very interested
				factor = 2
			}
			modifier = {
				condition = { type = not value = { type = duchy } }
				factor = 2
			}
			modifier = {
				condition = { type = liege
					condition = { type = trait value = stutter }
				}
				factor = 0.1
			}
			modifier = {
				condition = { type = not value = { type = difficulty value = 2 } }
				condition = { type = liege
					condition = { type = not value = { type = ai } }
				}
				factor = 2
			}
			modifier = {
				condition = { type = not value = { type = difficulty value = 1 } }
				condition = { type = liege
					condition = { type = not value = { type = ai } }
				}
				factor = 2
			}
			modifier = {
				condition = { type = difficulty value = 3 }
				condition = { type = liege
					condition = { type = ai }
				}
				factor = 2
			}
			modifier = {
				condition = { type = difficulty value = 4 }
				condition = { type = liege
					condition = { type = ai }
				}
				factor = 2
			}
		effect = { type = add_trait value = modest }
		effect = { type = loyalty value = 0.25 }
		effect = { type = prestige value = -25 }
	}
}

###############################################################################
###############################################################################

# PHASE TWO
# A rebellious vassal decides whether to ignite a civil war or whether to simply declare independence and leave quietly


character_event = {  #It is time to decide how to end my relationship with my liege.
	id = 6452

	picture = "event_claim"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = trait value = intestinal_worm }				#character has decided to break free
		condition = { type = liege
			condition = { type = not value = { type = trait value = stutter } }	#no one else has started a civil war yet
		}
		condition = { type = not value = { type = loyalty value = 1.0 } }
	}

	mean_time_to_happen = {
		months = 240

		modifier = {
			condition = { type = not							#Catholic vassal still won't stir up trouble if catholic liege is on crusade
				value = { type = and
					condition = { type = religion value = catholic }
					condition = { type = liege
						condition = { type = religion value = catholic }
						condition = { type = not value = { type = on_crusade } }
					}
				}
			}
			factor = 5
		}
		modifier = {
			condition = { type = liege
				condition = { type = atwar }			#liege is preoccupied
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = atwar }				#vassal is proccupied
			factor = 10
		}

		#Modifier for religion difference
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = liege condition = { type = not value = { type = religion value = catholic } } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = liege condition = { type = not value = { type = religion value = orthodox } } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege condition = { type = not value = { type = religion value = pagan } } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege condition = { type = not value = { type = religion value = moslem } } }
				}
			}
			factor = 0.1
		}

		#Prestige modifiers
		modifier = {
			condition = { type = prestige value = 125 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 250 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 500 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 1000 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 2000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = prestige value = 4000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 250 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 500 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 1000 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 2000 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 3000 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 4000 }
			}
			factor = 1.25
		}
		#bonus for far-away vassals satisfying instance #5
		modifier = {
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of condition
			factor = 0.1
		}
			
		#Modifiers for culture difference
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = culture value = lappish }
					condition = { type = liege condition = { type = not value = { type = culture value = lappish } } }
				}
				condition = { type = and
					condition = { type = culture value = norwegian }
					condition = { type = liege condition = { type = not value = { type = culture value = norwegian } } }
				}
				condition = { type = and
					condition = { type = culture value = swedish }
					condition = { type = liege condition = { type = not value = { type = culture value = swedish } } }
				}
				condition = { type = and
					condition = { type = culture value = scottish }
					condition = { type = liege condition = { type = not value = { type = culture value = scottish } } }
				}
				condition = { type = and
					condition = { type = culture value = saxon }
					condition = { type = liege condition = { type = not value = { type = culture value = saxon } } }
				}
				condition = { type = and
					condition = { type = culture value = irish }
					condition = { type = liege condition = { type = not value = { type = culture value = irish } } }
				}
				condition = { type = and
					condition = { type = culture value = welsh }
					condition = { type = liege condition = { type = not value = { type = culture value = welsh } } }
				}
				condition = { type = and
					condition = { type = culture value = english }
					condition = { type = liege condition = { type = not value = { type = culture value = english } } }
				}
				condition = { type = and
					condition = { type = culture value = finnish }
					condition = { type = liege condition = { type = not value = { type = culture value = finnish } } }
				}
				condition = { type = and
					condition = { type = culture value = prussian }
					condition = { type = liege condition = { type = not value = { type = culture value = prussian } } }
				}
				condition = { type = and
					condition = { type = culture value = lettigallish }
					condition = { type = liege condition = { type = not value = { type = culture value = lettigallish } } }
				}
				condition = { type = and
					condition = { type = culture value = lithuanian }
					condition = { type = liege condition = { type = not value = { type = culture value = lithuanian } } }
				}
				condition = { type = and
					condition = { type = culture value = german }
					condition = { type = liege condition = { type = not value = { type = culture value = german } } }
				}
				condition = { type = and
					condition = { type = culture value = dutch }
					condition = { type = liege condition = { type = not value = { type = culture value = dutch } } }
				}
				condition = { type = and
					condition = { type = culture value = frankish }
					condition = { type = liege condition = { type = not value = { type = culture value = frankish } } }
				}
				condition = { type = and
					condition = { type = culture value = norman }
					condition = { type = liege condition = { type = not value = { type = culture value = norman } } }
				}
				condition = { type = and
					condition = { type = culture value = basque }
					condition = { type = liege condition = { type = not value = { type = culture value = basque } } }
				}
				condition = { type = and
					condition = { type = culture value = castillan }
					condition = { type = liege condition = { type = not value = { type = culture value = castillan } } }
				}
				condition = { type = and
					condition = { type = culture value = catalan }
					condition = { type = liege condition = { type = not value = { type = culture value = catalan } } }
				}
				condition = { type = and
					condition = { type = culture value = italian }
					condition = { type = liege condition = { type = not value = { type = culture value = italian } } }
				}
				condition = { type = and
					condition = { type = culture value = latin }
					condition = { type = liege condition = { type = not value = { type = culture value = latin } } }
				}
				condition = { type = and
					condition = { type = culture value = hungarian }
					condition = { type = liege condition = { type = not value = { type = culture value = hungarian } } }
				}
				condition = { type = and
					condition = { type = culture value = southslavic }
					condition = { type = liege condition = { type = not value = { type = culture value = southslavic } } }
				}
				condition = { type = and
					condition = { type = culture value = russian }
					condition = { type = liege condition = { type = not value = { type = culture value = russian } } }
				}
				condition = { type = and
					condition = { type = culture value = greek }
					condition = { type = liege condition = { type = not value = { type = culture value = greek } } }
				}
				condition = { type = and
					condition = { type = culture value = georgian }
					condition = { type = liege condition = { type = not value = { type = culture value = georgian } } }
				}
				condition = { type = and
					condition = { type = culture value = armenian }
					condition = { type = liege condition = { type = not value = { type = culture value = armenian } } }
				}
				condition = { type = and
					condition = { type = culture value = alan }
					condition = { type = liege condition = { type = not value = { type = culture value = alan } } }
				}
				condition = { type = and
					condition = { type = culture value = cuman }
					condition = { type = liege condition = { type = not value = { type = culture value = cuman } } }
				}
				condition = { type = and
					condition = { type = culture value = pecheneg }
					condition = { type = liege condition = { type = not value = { type = culture value = pecheneg } } }
				}
				condition = { type = and
					condition = { type = culture value = turkish }
					condition = { type = liege condition = { type = not value = { type = culture value = turkish } } }
				}
				condition = { type = and
					condition = { type = culture value = muslim }
					condition = { type = liege condition = { type = not value = { type = culture value = muslim } } }
				}
				condition = { type = and
					condition = { type = culture value = persian }
					condition = { type = liege condition = { type = not value = { type = culture value = persian } } }
				}
				condition = { type = and
					condition = { type = culture value = mongol }
					condition = { type = liege condition = { type = not value = { type = culture value = mongol } } }
				}
				condition = { type = and
					condition = { type = culture value = polish }
					condition = { type = liege condition = { type = not value = { type = culture value = polish } } }
				}
				condition = { type = and
					condition = { type = culture value = bohemian }
					condition = { type = liege condition = { type = not value = { type = culture value = bohemian } } }
				}
				condition = { type = and
					condition = { type = culture value = portuguese }
					condition = { type = liege condition = { type = not value = { type = culture value = portuguese } } }
				}
			}
			factor = 0.5
		}

		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 0.75
		}

		#realm tier and situation modifiers
		modifier = {
			condition = { type = not value = { type = primary_heir }}			#already first in succession to something else (which will probably be bigger) so not very interested
			factor = 1.5
		}
		modifier = {
			condition = { type = duchy }
			factor = 0.75
		}
		modifier = {
			condition = { type = has_vassal }
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 1.0 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.8 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.6 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.4 } }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.2 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.05 } }
			}
			factor = 0.25
		}

		#loyalty modifiers
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.9 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.6 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.3 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.1 } }
			factor = 0.1
		}

		#high stats and traits and other fun stuff
		modifier = {
			condition = { type = martial value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = martial value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = valorous }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = deceitful }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = honest }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = not value = { type = trait value = heretic } } }
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 0.25
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = not value = { type = duchy } }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = is_independent }
						condition = { type = or
							condition = { type = duchy }
							condition = { type = kingdom }
						}
					} }
				}
				condition = { type = and
					condition = { type = duchy }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = kingdom }
					} }
				}
			}
			factor = 10.0
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = trait value = pneumonia }
					condition = { type = trait value = plagueinfested }
					condition = { type = trait value = maniac }
					condition = { type = trait value = schizofrenia }
					condition = { type = trait value = kinslayer }
					condition = { type = trait value = excommunicated }
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = has_law value = { popular_law = yes } }
					condition = { type = has_law value = { royal_preorgatory_law = yes } }
				}
			}
			factor = 0.66
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { feudal_contract_law = yes } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { elective_law = yes } } }
			factor = 1.5
		}

		#liege personal stats modifiers
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 8 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 14 }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 1 } }
			}
			factor = 0.5
		}

		#difficulty and AI modifiers
		modifier = {
			condition = { type = not value = { type = ai } }	#players don't need much help wreaking havoc on their rulers
			factor = 5
		}
		modifier = {
			condition = { type = difficulty value = 3 }		#hold AI realms together a bit more at higher difficulty levels
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 3 }		#ai will be fiesty with player on higher difficulties
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
	}


	action_a = { #I will attempt to spark a civil war!
		ai_chance = 85
		modifier = {
			condition = { type = not value = { type = duchy } }
			condition = { type = liege
				condition = { type = kingdom }
				condition = { type = ai }
			}
			factor = 0.15
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 1 } }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 2 } }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 1.5
		}
		modifier = { #moslem and pagan realms don't need any extra problems that aren't already scripted elsewhere
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege
						condition = { type = religion value = moslem }
					}
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege
						condition = { type = religion value = pagan }
					}
				}
			}
			factor = 0.01
		}
		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 1.5
		}
		#liege personal stats modifiers
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 8 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 11 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 14 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 17 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 8 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 11 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 14 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 17 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 8 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 11 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 14 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 17 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 8 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 11 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 14 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 17 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 6 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 3 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 1 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 6 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 3 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 1 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 6 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 3 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 1 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 6 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 3 } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 1 } }
			}
			factor = 1.25
		}
		effect = { type = trigger for = liege value = 6454 } #notifier and liege gets stutter (realm duress) trait
		effect = { type = remove_trait value = intestinal_worm }
		effect = { type = add_title_claim value = liege }
		effect = { type = declare_war value = liege }
		effect = { type = prestige value = 100 }
		effect = { type = loyalty value = 1.0 }
	}

	action_b = { #I would rather try to achieve my independence peacefully.
		ai_chance = 15
		#far-away vassals satisfying instance #5 are extremely likely to pick this
		modifier = {
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of condition
			factor = 1000
		}
		#more far away AI vassals modifiers to slip away peacefully
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = germany }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = region value = north_africa } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = asia_minor }
				condition = { type = region value = middle_east }
				condition = { type = region value = balkan }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = russia }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = north_africa }
				condition = { type = region value = balkan }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = spain }
				condition = { type = region value = germany }
				condition = { type = region value = italy }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = france }
				condition = { type = region value = italy }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = russia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = france }
				condition = { type = region value = britain }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = region value = middle_east } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = spain }
				condition = { type = region value = britain }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = france }
				condition = { type = region value = italy }
				condition = { type = region value = netherlands }
				condition = { type = region value = balkan }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = region value = britain } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
				condition = { type = region value = spain }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = france }
				condition = { type = region value = middle_east }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = spain }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = middle_east }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = asia_minor }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = middle_east }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
				condition = { type = region value = netherlands }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = russia }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
				condition = { type = region value = middle_east }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = region value = germany } } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = france }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 5
		}
		modifier = { #moslem and pagan realms don't need any extra problems that aren't already scripted elsewhere
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege
						condition = { type = religion value = moslem }
					}
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege
						condition = { type = religion value = pagan }
					}
				}
			}
			factor = 100
		}
		modifier = {
			condition = { type = not value = { type = primary_heir }}			#less likey to upset daddy
			factor = 3
		}
		effect = { type = trigger for = liege value = 6456 } #notifier
		effect = { type = remove_trait value = intestinal_worm }
		effect = { type = add_title_claim value = liege }
		effect = { type = independence }
		effect = { type = loyalty value = 1.0 }
		effect = { type = prestige value = 25 }
	}
}


###############################################################################
###############################################################################

# PHASE THREE
# A rebellious vassal decides whether to join the civil war


character_event = {  #A former rebellious vassal of your liege petitions you to join the civil war.
	id = 6453

	picture = "event_claim"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = trait value = intestinal_worm }				#character has decided to break free
		condition = { type = liege
			condition = { type = trait value = stutter }				#a different vassal has started a civil war
		}
	}

	mean_time_to_happen = {
		months = 80

		modifier = {
			condition = { type = liege
				condition = { type = atwar }			#liege is preoccupied
			}
			factor = 0.33
		}
		modifier = {
			condition = { type = atwar }				#vassal is proccupied
			factor = 5
		}

		#Modifier for religion difference
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = liege condition = { type = not value = { type = religion value = catholic } } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = liege condition = { type = not value = { type = religion value = orthodox } } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege condition = { type = not value = { type = religion value = pagan } } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege condition = { type = not value = { type = religion value = moslem } } }
				}
			}
			factor = 0.1
		}

		#Prestige modifiers
		modifier = {
			condition = { type = prestige value = 125 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 250 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 500 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 1000 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 2000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = prestige value = 4000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 250 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 500 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 1000 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 2000 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 3000 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 4000 }
			}
			factor = 1.25
		}
			
		#Modifiers for culture difference
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = culture value = lappish }
					condition = { type = liege condition = { type = not value = { type = culture value = lappish } } }
				}
				condition = { type = and
					condition = { type = culture value = norwegian }
					condition = { type = liege condition = { type = not value = { type = culture value = norwegian } } }
				}
				condition = { type = and
					condition = { type = culture value = swedish }
					condition = { type = liege condition = { type = not value = { type = culture value = swedish } } }
				}
				condition = { type = and
					condition = { type = culture value = scottish }
					condition = { type = liege condition = { type = not value = { type = culture value = scottish } } }
				}
				condition = { type = and
					condition = { type = culture value = saxon }
					condition = { type = liege condition = { type = not value = { type = culture value = saxon } } }
				}
				condition = { type = and
					condition = { type = culture value = irish }
					condition = { type = liege condition = { type = not value = { type = culture value = irish } } }
				}
				condition = { type = and
					condition = { type = culture value = welsh }
					condition = { type = liege condition = { type = not value = { type = culture value = welsh } } }
				}
				condition = { type = and
					condition = { type = culture value = english }
					condition = { type = liege condition = { type = not value = { type = culture value = english } } }
				}
				condition = { type = and
					condition = { type = culture value = finnish }
					condition = { type = liege condition = { type = not value = { type = culture value = finnish } } }
				}
				condition = { type = and
					condition = { type = culture value = prussian }
					condition = { type = liege condition = { type = not value = { type = culture value = prussian } } }
				}
				condition = { type = and
					condition = { type = culture value = lettigallish }
					condition = { type = liege condition = { type = not value = { type = culture value = lettigallish } } }
				}
				condition = { type = and
					condition = { type = culture value = lithuanian }
					condition = { type = liege condition = { type = not value = { type = culture value = lithuanian } } }
				}
				condition = { type = and
					condition = { type = culture value = german }
					condition = { type = liege condition = { type = not value = { type = culture value = german } } }
				}
				condition = { type = and
					condition = { type = culture value = dutch }
					condition = { type = liege condition = { type = not value = { type = culture value = dutch } } }
				}
				condition = { type = and
					condition = { type = culture value = frankish }
					condition = { type = liege condition = { type = not value = { type = culture value = frankish } } }
				}
				condition = { type = and
					condition = { type = culture value = norman }
					condition = { type = liege condition = { type = not value = { type = culture value = norman } } }
				}
				condition = { type = and
					condition = { type = culture value = basque }
					condition = { type = liege condition = { type = not value = { type = culture value = basque } } }
				}
				condition = { type = and
					condition = { type = culture value = castillan }
					condition = { type = liege condition = { type = not value = { type = culture value = castillan } } }
				}
				condition = { type = and
					condition = { type = culture value = catalan }
					condition = { type = liege condition = { type = not value = { type = culture value = catalan } } }
				}
				condition = { type = and
					condition = { type = culture value = italian }
					condition = { type = liege condition = { type = not value = { type = culture value = italian } } }
				}
				condition = { type = and
					condition = { type = culture value = latin }
					condition = { type = liege condition = { type = not value = { type = culture value = latin } } }
				}
				condition = { type = and
					condition = { type = culture value = hungarian }
					condition = { type = liege condition = { type = not value = { type = culture value = hungarian } } }
				}
				condition = { type = and
					condition = { type = culture value = southslavic }
					condition = { type = liege condition = { type = not value = { type = culture value = southslavic } } }
				}
				condition = { type = and
					condition = { type = culture value = russian }
					condition = { type = liege condition = { type = not value = { type = culture value = russian } } }
				}
				condition = { type = and
					condition = { type = culture value = greek }
					condition = { type = liege condition = { type = not value = { type = culture value = greek } } }
				}
				condition = { type = and
					condition = { type = culture value = georgian }
					condition = { type = liege condition = { type = not value = { type = culture value = georgian } } }
				}
				condition = { type = and
					condition = { type = culture value = armenian }
					condition = { type = liege condition = { type = not value = { type = culture value = armenian } } }
				}
				condition = { type = and
					condition = { type = culture value = alan }
					condition = { type = liege condition = { type = not value = { type = culture value = alan } } }
				}
				condition = { type = and
					condition = { type = culture value = cuman }
					condition = { type = liege condition = { type = not value = { type = culture value = cuman } } }
				}
				condition = { type = and
					condition = { type = culture value = pecheneg }
					condition = { type = liege condition = { type = not value = { type = culture value = pecheneg } } }
				}
				condition = { type = and
					condition = { type = culture value = turkish }
					condition = { type = liege condition = { type = not value = { type = culture value = turkish } } }
				}
				condition = { type = and
					condition = { type = culture value = muslim }
					condition = { type = liege condition = { type = not value = { type = culture value = muslim } } }
				}
				condition = { type = and
					condition = { type = culture value = persian }
					condition = { type = liege condition = { type = not value = { type = culture value = persian } } }
				}
				condition = { type = and
					condition = { type = culture value = mongol }
					condition = { type = liege condition = { type = not value = { type = culture value = mongol } } }
				}
				condition = { type = and
					condition = { type = culture value = polish }
					condition = { type = liege condition = { type = not value = { type = culture value = polish } } }
				}
				condition = { type = and
					condition = { type = culture value = bohemian }
					condition = { type = liege condition = { type = not value = { type = culture value = bohemian } } }
				}
				condition = { type = and
					condition = { type = culture value = portuguese }
					condition = { type = liege condition = { type = not value = { type = culture value = portuguese } } }
				}
			}
			factor = 0.5
		}

		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 0.75
		}

		#realm tier and situation modifiers
		modifier = {
			condition = { type = not value = { type = primary_heir }}			#already first in succession to something else (which will probably be bigger) so not very interested
			factor = 1.5
		}
		modifier = {
			condition = { type = duchy }
			factor = 0.75
		}
		modifier = {
			condition = { type = has_vassal }
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 1.0 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.8 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.6 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.4 } }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.2 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.05 } }
			}
			factor = 0.25
		}

		#loyalty modifiers
		modifier = {
			condition = { type = loyalty value = 1.0 }
			factor = 3
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.9 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.6 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.3 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.1 } }
			factor = 0.1
		}

		#high stats and traits and other fun stuff
		modifier = {
			condition = { type = martial value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = martial value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = valorous }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = deceitful }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = honest }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = not value = { type = trait value = heretic } } }
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 0.25
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = not value = { type = duchy } }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = is_independent }
						condition = { type = or
							condition = { type = duchy }
							condition = { type = kingdom }
						}
					} }
				}
				condition = { type = and
					condition = { type = duchy }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = kingdom }
					} }
				}
			}
			factor = 10.0
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = trait value = pneumonia }
					condition = { type = trait value = plagueinfested }
					condition = { type = trait value = maniac }
					condition = { type = trait value = schizofrenia }
					condition = { type = trait value = kinslayer }
					condition = { type = trait value = excommunicated }
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = has_law value = { popular_law = yes } }
					condition = { type = has_law value = { royal_preorgatory_law = yes } }
				}
			}
			factor = 0.66
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { feudal_contract_law = yes } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { elective_law = yes } } }
			factor = 1.5
		}

		#liege personal stats modifiers
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 6 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 3 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 1 } }
			}
			factor = 0.5
		}

		#difficulty and AI modifiers
		modifier = {
			condition = { type = not value = { type = ai } }	#players don't need much help wreaking havoc on their rulers
			factor = 5
		}
		modifier = {
			condition = { type = difficulty value = 3 }		#hold AI realms together a bit more at higher difficulty levels
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 3 }		#ai will be fiesty with player on higher difficulties
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
	}


	action_a = { #I will join this civil war against my liege!
		ai_chance = 60
		modifier = {
			condition = { type = loyalty value = 1.0 }
			factor = 0.1
		}
		modifier = {
			condition = { type = not value = { type = duchy } }
			condition = { type = liege
				condition = { type = kingdom }
				condition = { type = ai }
			}
			factor = 0.15
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 1 } }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = difficulty value = 2 } }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 1.5
		}
		modifier = { #moslem and pagan realms don't need any extra problems that aren't already scripted elsewhere
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege
						condition = { type = religion value = moslem }
					}
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege
						condition = { type = religion value = pagan }
					}
				}
			}
			factor = 0.01
		}
		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 1.5
		}
		effect = { type = trigger for = liege value = 6455 } #notifier
		effect = { type = remove_trait value = intestinal_worm }
		effect = { type = add_title_claim value = liege }
		effect = { type = declare_war value = liege }
		effect = { type = prestige value = 100 }
		effect = { type = loyalty value = 1.0 }
	}

	action_b = { #I would rather gain my independence peacefully
		ai_chance = 20
		modifier = {		#count more likely to try to slip away
			condition = { type = not value = { type = duchy } }
			condition = { type = liege
				condition = { type = kingdom }
				condition = { type = ai }
			}
			factor = 2
		}
		#far away AI vassals far more likely to slip away peacefully
		#bonus for far-away vassals satisfying instance #5
		modifier = {
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of condition
			factor = 100
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = germany }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = region value = north_africa } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = asia_minor }
				condition = { type = region value = middle_east }
				condition = { type = region value = balkan }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = russia }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = north_africa }
				condition = { type = region value = balkan }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = spain }
				condition = { type = region value = germany }
				condition = { type = region value = italy }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = france }
				condition = { type = region value = italy }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = russia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = france }
				condition = { type = region value = britain }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = region value = middle_east } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = spain }
				condition = { type = region value = britain }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = france }
				condition = { type = region value = italy }
				condition = { type = region value = netherlands }
				condition = { type = region value = balkan }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = region value = britain } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
				condition = { type = region value = spain }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = france }
				condition = { type = region value = middle_east }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = spain }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = middle_east }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = asia_minor }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = middle_east }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
				condition = { type = region value = netherlands }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = russia }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
				condition = { type = region value = middle_east }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = region value = germany } } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = france }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 5
		}
		modifier = { #moslem and pagan realms don't need any extra problems that aren't already scripted elsewhere
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege
						condition = { type = religion value = moslem }
					}
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege
						condition = { type = religion value = pagan }
					}
				}
			}
			factor = 100
		}
		modifier = {
			condition = { type = primary_heir }			#already first in succession to something else (which will probably be bigger) so not very interested
			factor = 2
		}
		modifier = {
			condition = { type = loyalty value = 1.0 }
			factor = 10
		}
		effect = { type = trigger for = liege value = 6456 } #notifier
		effect = { type = remove_trait value = intestinal_worm }
		effect = { type = add_title_claim value = liege }
		effect = { type = independence }
		effect = { type = loyalty value = 1.0 }
		effect = { type = prestige value = 25 }
	}

	action_c = { #In spite of our quarrels, I will support my liege.
		ai_chance = 20
		modifier = {
			condition = { type = loyalty value = 1.0 }
			factor = 10
		}
		modifier = {
			condition = { type = primary_heir }			#already first in succession to something else (which will probably be bigger) so not very interested
			factor = 5
		}
		effect = { type = remove_trait value = intestinal_worm }
		effect = { type = add_trait value = modest }
		effect = { type = loyalty value = 1.0 }
	}
		
}

###############################################################################
###############################################################################

# PHASE FOUR
# notifiers and effects for liege


character_event = {  #A vassal has broken free from you and is trying to spark a civil war in your realm. You should be careful with any remaining vassals or they may revolt as well!
	id = 6454

	picture = "event_claim"

	#triggered by 6452 action_a

	action_a = { #Curses!
		effect = { type = add_trait value = stutter } #this trait has been redefined to "Realm Duress" and marks the character as a liege at risk of civil war
		effect = { type = prestige scale = -5 }
	}
}


character_event = {  #Another vassal has broken free. Civil war may be inevitable.
	id = 6455

	picture = "event_claim"

	#triggered by 6453 action_a

	action_a = { #Dear God, no!
		effect = { type = prestige scale = -1 }
	}
}


character_event = {  #A vassal has declared independence.
	id = 6456

	picture = "event_claim"

	#triggered by 6452 action_b or 6453 action_b

	action_a = { #He shall pay!
		effect = { type = prestige value = 50 }
		effect = { type = piety value = -25 }
		effect = { type = random chance = 25
			effect = { type = add_trait value = vengeful }
		}
	}
	action_b = { #He may go in peace.
		effect = { type = prestige scale = -25 }
		effect = { type = piety value = 25 }
		effect = { type = random chance = 25
			effect = { type = add_trait value = forgiving }
		}
	}
}


###############################################################################
###############################################################################

# PHASE FIVE
# chances for rebellious vassals to change their minds

character_event = {  #Perhaps I should reconsider whether I ought to be so rebellious?
	id = 6457

	picture = "event_claim"

	trigger = {
		condition = { type = trait value = intestinal_worm }
		condition = { type = loyalty value = 0.8 }
	}

	mean_time_to_happen = {
		months = 100

		modifier = {
			condition = { type = not value = { type = ruler } }
			factor = 100 #handled elsewhere
		}
		modifier = {
			condition = { type = is_independent }
			factor = 100 #handled elsewhere
		}
		modifier = {
			condition = { type = loyalty value = 0.9 }
			factor = 0.85
		}
		modifier = {
			condition = { type = loyalty value = 1.0 }
			factor = 0.85
		}
	}

	action_a = { #I don't feel rebelious any longer.
		ai_chance = 15
		modifier = {
			condition = { type = not value = { type = ruler } }
			factor = 100
		}
		modifier = {
			condition = { type = is_independent }
			factor = 100
		}
		modifier = {
			condition = { type = primary_heir }
			factor = 10
		}
		modifier = {
			condition = { type = difficulty value = 2 }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = liege
				condition = { type = not value = { type = ai } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = liege
				condition = { type = ai }
			}
			factor = 2
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = liege
				condition = { type = ai }
			}
			factor = 2
		}
		effect = { type = remove_trait value = intestinal_worm }
		effect = { type = add_trait value = modest }
		effect = { type = prestige value = -50 }
		effect = { type = loyalty value = 1.0 }
	}

	action_b = { #I see no reason to change my ways.
		ai_chance = 85
		#make sure far-away vassals from instance #5 don't clear trait too soon
		#bonus for far-away vassals satisfying instance #5
		modifier = {
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of condition
			factor = 100
		}

		modifier = {
			condition = { type = not value = { type = ruler } }
			factor = 0.01
		}
		modifier = {
			condition = { type = is_independent }
			factor = 0.01
		}
		modifier = {
			condition = { type = loyalty value = 1.0 }
			factor = 0.75
		}
		effect = { type = prestige value = 25 }
		effect = { type = loyalty value = -0.5 }
	}
}


###############################################################################
###############################################################################

# PHASE SIX
# chances for vassal who decided to be loyal in the earlier events (or already had modest trait from some other event) to become rebellious.

character_event = {  #My liege's realm could dissolve into civil war. Perhaps I should carefully consider my options.
	id = 6458

	picture = "event_claim"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = age value = 16 }
		condition = { type = not value = { type = trait value = intestinal_worm } }
		condition = { type = trait value = modest }
		condition = { type = not value = { type = loyalty value = 0.75 } }
		condition = { type = prestige value = 25 }
		condition = { type = liege
			condition = { type = trait value = stutter }			#opportunity only crops up if someone else starts civil war
		}
	}

	mean_time_to_happen = {
		months = 90

		#bonus for far-away vassals satisfying instance #5
		modifier = {
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of condition
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.6 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.4 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.2 } }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.05 } }
			factor = 0.1
		}
		modifier = {
			condition = { type = not value = { type = primary_heir }}			#already first in succession to something else (which will probably be bigger) so not very interested
			factor = 2
		}
		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 0.75
		}
		modifier = {										#counts less likely to change mind
			condition = { type = not value = { type = duchy } }
			condition = { type = liege
				condition = { type = kingdom }
				condition = { type = ai }
			}
			factor = 1.5
		}

	}

	action_a = { #I feel no great loyalty, but I'm not yet ready for war.
		ai_chance = 50
		#bonus for far-away vassals satisfying instance #5
		modifier = {
			condition = { type = and
				condition = { type = not value = { type = atwar } }			# Vassal must not be at war
				condition = { type = or
					condition = { type = martial value = 5 }			# Vassal must have either decent Martial
					condition = { type = intrigue value = 5 }			# Or Intrigue
				}
				condition = { type = liege
					condition = { type = and					# Liege must not be genius diplomat, nor his chancellor
						condition = { type = not value = { type = diplomacy value = 12 } }
						condition = { type = not value = { type = chancellor_csc condition = { type = diplomacy value = 15 } } }
					}
				}
				condition = { type = or
					condition = { type = and
						condition = { type = county }			# This part is only for counts
						condition = { type = not value = { type = duchy } }
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 3 } } # Eire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 58 } } # North England
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 18 } # Wales
											condition = { type = area value = 17 } # South England
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 40 } } # Scotland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 58 } # North England
											condition = { type = area value = 40 } # Scotland
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 1 } } # Iceland
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 1 } # Iceland
											condition = { type = province value = 35 } # Western Isles
											condition = { type = province value = 36 } # Orkney
											condition = { type = province value = 37 } # Caithness
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = province value = 305 } # Bornholm
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 265 } # Elbe
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 268 } } # Fjords
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 280 } } # Bothnia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 381 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 303 } } # Lake area
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 268 } # Fjords
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 265 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 381 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 376 } } # sel
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 376 } # Livonia
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 303 } # Lake area
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 86 } # Wesser
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 76 } } # Schelde
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 80 } # Nieder-Rhein
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 95 } # Seine
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = province value = 129 } # Verdun
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 76 } # Schelde
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 118 } # Rhein
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 101 } } # Aulne
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 107 } } # Loire
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 143 } # Garonne
											condition = { type = province value = 151 } # Labourd
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 101 } # Aulne
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 151 } # Pyrenees
											condition = { type = area value = 207 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = province value = 134 } # Sundgau
											condition = { type = province value = 135 } # Besancon
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 95 } # Seine
											condition = { type = area value = 107 } # Loire
											condition = { type = area value = 143 } # Garonne
											condition = { type = area value = 225 } # Massif-Central
											condition = { type = area value = 226 } # Rhone
											condition = { type = area value = 228 } # Alpes Martimes
											condition = { type = area value = 207 } # Ribbaroja
											condition = { type = area value = 135 } # Rhein
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 241 } # Alps
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 150 } # Garonne
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 154 } } # Leyn
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 152 } # Pyrenees
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 160 } } # Tejo
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 162 } # Extremadura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 162 } } # Extremadura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 197 } } # La mancha
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 162 } # Extremadura
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 160 } # Tejo
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 172 } } # Ebro
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 165 } # Sierra Nevada
											condition = { type = area value = 197 } # La mancha
											condition = { type = area value = 154 } # Leyn
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 172 } # Ebro
											condition = { type = area value = 200 } # Pyrenees
											condition = { type = area value = 202 } # Ribbaroja
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 211 } # Garonne
											condition = { type = area value = 212 } # Rhone
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 221 } # Rhone
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = province value = 317 } # Trent
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 236 } # Alpes Martimes
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 456 } # Alpi Carniche
											condition = { type = area value = 458 } # Dinara Planina
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 323 } } # Papal States
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 334 } # Apennino
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 324 } } # Sardgena
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 233 } # Po
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 324 } # Sardgena
											condition = { type = area value = 236 } # Alpes Martimes
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 334 } } # Apennino
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 323 } # Papal States
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 339 } } # Sicilia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 334 } # Apennino
											condition = { type = area value = 339 } # Sicilia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 115 } # Schelde
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 85 } # Nieder-Rhein
											condition = { type = area value = 86 } # Wesser
											condition = { type = area value = 115 } # Schelde
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 136 } # Seine
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 242 } # Alps
											condition = { type = area value = 249 } # Baden
											condition = { type = area value = 256 } # Elbe
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 123 } } # Main
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 238 } } # Alps
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 240 } # Rhone
											condition = { type = area value = 237 } # Alps-Martimes
											condition = { type = area value = 235 } # Po
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 455 } # Alpi Carniche
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 255 } } # Baden
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 123 } # Main
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 313 } # Danube
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 256 } } # Elbe
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 119 } # Rhein
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 257 } # Wesser
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 304 } } # Oder
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 303 } # Lake area
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 313 } } # Danube
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 255 } # Baden
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 363 } } # Vltava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 256 } # Elbe
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 368 } } # Wisla
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 304 } # Oder
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniestr
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 371 } } # Livonia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 443 } } # Duna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 448 } } # Donau
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 313 } # Danube
											condition = { type = area value = 448 } # Donau
											condition = { type = area value = 445 } # Duna
											condition = { type = area value = 363 } # Vltava
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 455 } # Alpi Carniche
											condition = { type = area value = 238 } # Alps
											condition = { type = area value = 460 } # Dinara planina
											condition = { type = area value = 518 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 512 } } # Dunarea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 498 } # Maritsa
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 525 } } # Carpathians
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 534 } # Dniester
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 534 } } # Dniester
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 512 } # Dunarea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 521 } } # Dunav
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 443 } # Duna
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 525 } # Carpathians
											condition = { type = area value = 512 } # Dunarea
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 498 } # Maritsa
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 358 } # Po
											condition = { type = area value = 457 } # Alpi Carniche
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 442 } # Donau
											condition = { type = area value = 468 } # Crna Gora
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 460 } # Dinara Planina
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 474 } } # Cyclades
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 502 } } # Axios
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 470 } # Pindhos Oros
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 474 } # Cyclades
											condition = { type = area value = 476 } # Peloponnesos
											condition = { type = area value = 468 } # Crna Gora
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 494 } } # Maritsa
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 502 } # Axios
											condition = { type = area value = 494 } # Maritsa
											condition = { type = area value = 521 } # Dunav
											condition = { type = area value = 509 } # Dunarea
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 755 } # Anatolia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 387 } } # White Sea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 385 } # Baltic
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 399 } } # Kama
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 611 } # Bulgar
											condition = { type = area value = 612 } # Urals
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 404 } } # Vetluga
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 411 } # Baltic
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 410 } } # Volkhov
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 387 } # White Sea
											condition = { type = area value = 411 } # Baltic
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 380 } # Livonia
											condition = { type = area value = 418 } # Daugava
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 411 } } # Baltic
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 280 } # Bothnia
											condition = { type = area value = 387 } # White sea
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 381 } # Baltic
											condition = { type = area value = 380 } # Livonia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 420 } } # Daugava
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 371 } # Livonia
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 412 } # Volkhov
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 424 } } # Polesye
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 368 } # Wisla
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 420 } # Daugava
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 547 } } # Dnepr
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 424 } # Polesye
											condition = { type = area value = 534 } # Dniester
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 559 } # Crimea
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 559 } } # Crimea
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 559 } # Crimea
											condition = { type = province value = 496 } # Byzantion
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 563 } } # Don
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 547 } # Dnepr
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 570 } } # Oka
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 410 } # Volkhov
											condition = { type = area value = 570 } # Oka
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 404 } # Vetluga
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 579 } } # Khoper
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 590 } } # Sura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 551 } # Sredne Russka
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 590 } # Sura
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 404 } # Vetluga
											condition = { type = area value = 570 } # Oka
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 598 } } # Kuban
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 559 } # Crimea
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 609 } } # Bulgar
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 586 } # Sura
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 579 } # Khoper
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 612 } } # Urals
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 399 } # Kama
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 617 } # Samara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 617 } } # Samara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 612 } # Urals
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 618 } } # Khazaks
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 618 } # Khazaks
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 626 } } # Karakumy
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 623 } # Ustyurt
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 630 } } # Elburz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 626 } # Karakumy
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 664 } } # Zagros
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 635 } # Salt Desert
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 650 } # Ad Dahna
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 701 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 650 } # Ad Dahna
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 668 } } # Kura
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 670 } } # Armenia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 673 } # Caucasus
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 668 } # Kura
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 737 } # Anatolia
											condition = { type = area value = 687 } # Kurdistan
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 600 } } # Caucasus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 669 } # Kura
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 608 } } # Depression
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 598 } # Kuban
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 608 } # Depression
											condition = { type = area value = 563 } # Don
											condition = { type = area value = 609 } # Bulgar
											condition = { type = area value = 617 } # Samara
											condition = { type = area value = 618 } # Khazaks
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 630 } # Elburz
											condition = { type = area value = 664 } # Zagros
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 687 } # Kurdistan
											condition = { type = area value = 670 } # Armenia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 645 } # Mesopotamia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 602 } # Caucasus
											condition = { type = area value = 672 } # Armenia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 705 } # Weird Shit
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 718 } # Al Hijaz
											condition = { type = area value = 783 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 738 } } # Anatolia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 705 } # Weird Shit
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 744 } } # Ionia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 744 } # Ionia
											condition = { type = area value = 496 } # Maritsa
											condition = { type = area value = 483 } # Cyclades
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 707 } } # Taurus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 670 } # Armenia
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 738 } # Anatolia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 756 } } # Cyprus
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 707 } # Taurus
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 756 } # Cyprus
											condition = { type = area value = 780 } # Sinai
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 724 } } # Jordan
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
										} } } }
									}
								}
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = or
									condition = { type = and
										condition = { type = capital condition = { type = area value = 780 } } # Sinai
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 724 } # Jordan
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 762 } # Phoenicia
											condition = { type = area value = 692 } # Syrian Desert
											condition = { type = area value = 721 } # Al Hijaz
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 790 } } # Nubia
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 789 } } # Delta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 783 } # Sinai
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 790 } # Nubia
											condition = { type = area value = 804 } # Qattara
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 804 } } # Qattara
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 789 } # Delta
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 804 } # Qattara
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = province value = 812 } } # Malta
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 339 } # Sicilia
											condition = { type = area value = 805 } # Cyrenaica
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 815 } } # Carthago
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 810 } # Tripolitania
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 821 } } # Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 815 } # Carthago
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 829 } } # Berbers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 829 } # Berbers
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 827 } } # Baleares
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 827 } # Baleares
											condition = { type = area value = 171 } # Sierra Nevada
											condition = { type = area value = 174 } # Ebro
											condition = { type = area value = 204 } # Ribbaroja
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 831 } } # Algiers
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 821 } # Atlas
											condition = { type = area value = 831 } # Algiers
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = area value = 839 } } # Marocco
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 839 } # Marocco
										} } } }
									}
									condition = { type = and
										condition = { type = capital condition = { type = or
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} }
										condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
											condition = { type = area value = 837 } # Haut Atlas
											condition = { type = area value = 846 } # Sahara
											condition = { type = area value = 848 } # Canaries
										} } } }
									}
								}
							}
						}
					}
					condition = { type = and
						condition = { type = duchy }			# This part is for dukes
						condition = { type = or
							condition = { type = and
								condition = { type = region value = britain }
								condition = { type = capital condition = { type = region value = britain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = britain }
									condition = { type = area value = 1 } # Iceland
									condition = { type = area value = 274 } # Fjords
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 78 } # Schelde
									condition = { type = area value = 96 } # Seine
									condition = { type = area value = 101 } # Aulne
									condition = { type = area value = 108 } # Loire
								} } } }
							}
							condition = { type = and
								condition = { type = region value = scandinavia }
								condition = { type = capital condition = { type = region value = scandinavia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = scandinavia }
									condition = { type = area value = 40 } # Scotland
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 365 } # Oder
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
								} } } }
							}
							condition = { type = and
								condition = { type = region value = netherlands }
								condition = { type = capital condition = { type = region value = netherlands } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = area value = 57 } # North England
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 138 } # Loire
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 86 } # Wesser
									condition = { type = area value = 84 } # Nieder-Rhein
									condition = { type = area value = 267 } # Elbe
								} } } }
							}
							condition = { type = and
								condition = { type = region value = france }
								condition = { type = capital condition = { type = region value = france } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = france }
									condition = { type = region value = netherlands }
									condition = { type = area value = 70 } # South England
									condition = { type = area value = 94 } # Schelde
									condition = { type = area value = 118 } # Rhein
									condition = { type = area value = 121 } # Main
									condition = { type = area value = 255 } # Baden
									condition = { type = area value = 242 } # Alps
									condition = { type = area value = 236 } # Alpes Martimes
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 153 } # Pyrenees
									condition = { type = area value = 154 } # Leyn
									condition = { type = area value = 173 } # Ebro
									condition = { type = area value = 204 } # Ribbaroja
								} } } }
							}
							condition = { type = and
								condition = { type = region value = spain }
								condition = { type = capital condition = { type = region value = spain } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = spain }
									condition = { type = area value = 143 } # Garonne
									condition = { type = area value = 218 } # Massif Central
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 821 } # Atlas
									condition = { type = area value = 827 } # Baleareas
									condition = { type = area value = 831 } # Algiers
									condition = { type = area value = 838 } # Haut Atlas
									condition = { type = area value = 839 } # Marocco
								} } } }
							}
							condition = { type = and
								condition = { type = region value = italy }
								condition = { type = capital condition = { type = region value = italy } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = italy }
									condition = { type = area value = 224 } # Massif Central
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 248 } # Alps
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 468 } # Crna Gora
									condition = { type = area value = 470 } # Pindhos Oros
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 810 } # Tripolitania
									condition = { type = area value = 815 } # Carthago
								} } } }
							}
							condition = { type = and
								condition = { type = region value = germany }
								condition = { type = capital condition = { type = region value = germany } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = germany }
									condition = { type = area value = 79 } # Schelde
									condition = { type = area value = 80 } # Neider-Rhein
									condition = { type = area value = 112 } # Seine
									condition = { type = area value = 129 } # Rhein
									condition = { type = area value = 228 } # Alpes Martimes
									condition = { type = area value = 212 } # Rhone
									condition = { type = area value = 317 } # Alps
									condition = { type = area value = 235 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 458 } # Dinara Planina
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 525 } # Carpathians
									condition = { type = area value = 528 } # Wisla
									condition = { type = area value = 303 } # Lake area
									condition = { type = area value = 305 } # Oder
									condition = { type = area value = 267 } # Elbe
									condition = { type = area value = 268 } # Fjords
								} } } }
							}
							condition = { type = and
								condition = { type = region value = eastern_europe }
								condition = { type = capital condition = { type = region value = eastern_europe } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = eastern_europe }
									condition = { type = region value = balkan }
									condition = { type = area value = 266 } # Elbe
									condition = { type = area value = 303 } # Lake Area
									condition = { type = area value = 304 } # Oder
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 410 } # Volkhov
									condition = { type = area value = 393 } # White Sea
									condition = { type = area value = 409 } # Vetluga
									condition = { type = area value = 570 } # Oka
									condition = { type = area value = 553 } # Sredne Russka
									condition = { type = area value = 556 } # Dnepr
									condition = { type = area value = 565 } # Don
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 437 } # Vltava
									condition = { type = area value = 362 } # Danube
									condition = { type = area value = 448 } # Donau
									condition = { type = area value = 455 } # Alpi Carniche
								} } } }
							}
							condition = { type = and
								condition = { type = region value = balkan }
								condition = { type = capital condition = { type = region value = balkan } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = balkan }
									condition = { type = area value = 455 } # Alpi Carniche
									condition = { type = area value = 356 } # Po
									condition = { type = area value = 450 } # Donau
									condition = { type = area value = 445 } # Duna
									condition = { type = area value = 521 } # Dunav
									condition = { type = area value = 513 } # Dunarea
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 345 } # Appennino
									condition = { type = area value = 802 } # Delta
									condition = { type = area value = 804 } # Qattara
									condition = { type = area value = 805 } # Cyrenaica
									condition = { type = area value = 744 } # Ionia
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 760 } # Taurus
								} } } }
							}
							condition = { type = and
								condition = { type = region value = russia }
								condition = { type = capital condition = { type = region value = russia } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = russia }
									condition = { type = area value = 381 } # Baltic
									condition = { type = area value = 290 } # Bothnia
									condition = { type = area value = 292 } # Lake Area
									condition = { type = area value = 371 } # Livonia
									condition = { type = area value = 420 } # Daugava
									condition = { type = area value = 368 } # Wisla
									condition = { type = area value = 424 } # Polesye
									condition = { type = area value = 540 } # Carpathians
									condition = { type = area value = 541 } # Dniestr
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 738 } # Anatolia
									condition = { type = area value = 705 } # Weird Shit
									condition = { type = area value = 672 } # Armenia
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 669 } # Kura
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 621 } # Khazaks
									condition = { type = area value = 623 } # Ustyurt
									condition = { type = area value = 626 } # Karakumy
								} } } }
							}
							condition = { type = and
								condition = { type = region value = middle_east }
								condition = { type = capital condition = { type = region value = middle_east } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 675 } # Depression
									condition = { type = area value = 619 } # Khazaks
									condition = { type = area value = 616 } # Samara
									condition = { type = area value = 612 } # Urals
									condition = { type = area value = 613 } # Bolgar
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 596 } # Don
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = asia_minor }
								condition = { type = capital condition = { type = region value = asia_minor } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = middle_east }
									condition = { type = region value = asia_minor }
									condition = { type = area value = 678 } # Caucasus
									condition = { type = area value = 597 } # Kuban
									condition = { type = area value = 559 } # Crimea
									condition = { type = area value = 512 } # Dunarea
									condition = { type = area value = 508 } # Dunav
									condition = { type = area value = 496 } # Maritsa
									condition = { type = area value = 490 } # Axios
									condition = { type = area value = 470 } # Pindhros Oros
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 780 } # Sinai
									condition = { type = area value = 789 } # Delta
									condition = { type = area value = 790 } # Nubia
								} } } }
							}
							condition = { type = and
								condition = { type = region value = north_africa }
								condition = { type = capital condition = { type = region value = north_africa } }
								condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
									condition = { type = region value = north_africa }
									condition = { type = region value = spain }
									condition = { type = area value = 694 } # Syrian Desert
									condition = { type = area value = 693 } # Mesopotamia
									condition = { type = area value = 724 } # Jordan
									condition = { type = area value = 721 } # Al Hijaz
									condition = { type = area value = 756 } # Cyprus
									condition = { type = area value = 762 } # Phoenicia
									condition = { type = area value = 474 } # Cyclades
									condition = { type = area value = 482 } # Peloponnesos
									condition = { type = area value = 338 } # Appennino
									condition = { type = area value = 339 } # Sicilia
									condition = { type = area value = 325 } # Sardgena
								} } } }
							}
						}
					}
				}
			} #end of condition
			factor = 100
		}
		effect = { type = remove_trait value = modest }
		effect = { type = add_trait value = intestinal_worm }
		effect = { type = prestige value = 25 }
		effect = { type = loyalty value = -0.5 }
	}

	action_b = { #I am looking forward to his surprise at my betrayal.
		ai_chance = 25
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.5 } }
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.2 } }
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.05 } }
			factor = 5
		}
		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 1.25
		}
		effect = { type = trigger for = liege value = 6455 } #notifier
		effect = { type = remove_trait value = modest }
		effect = { type = add_title_claim value = liege }
		effect = { type = declare_war value = liege }
		effect = { type = prestige value = 50 }
		effect = { type = loyalty value = 1.0 }
	}
	action_c = { #No. I will remain steadfastly loyal.
		ai_chance = 25
		modifier = { #count a bit more likely to remain loyal
			condition = { type = not value = { type = duchy } }
			condition = { type = liege
				condition = { type = kingdom }
				condition = { type = ai }
			}
			factor = 0.15
		}
		effect = { type = prestige value = -10 }
		effect = { type = loyalty value = 1.0 }
	}
}


###############################################################################
###############################################################################

# PHASE SEVEN
# Liege has opportunity to end the threat of civil war, and safty net in case someone gets the trait by mistake.

character_event = {  #It seems that my realm is no longer under direct threat of civil war.
	id = 6459

	picture = "event_claim"

	trigger = {
		condition = { type = trait value = stutter }
	}

	mean_time_to_happen = {
		months = 48

		modifier = {
			condition = { type = atwar }
			factor = 10
		}
		modifier = {
			condition = { type = not value = { type = ruler } }
			factor = 0.01
		}
		modifier = {
			condition = { type = is_vassal }
			factor = 0.01
		}
		modifier = {
			condition = { type = not value = { type = has_vassal } }
			factor = 0.01
		}
		modifier = {
			condition = { type = not
				value = { type = any_vassal
					condition = { type = trait value = intestinal_worm }
				}
			}
			factor = 0.1
		}
		modifier = {
			condition = { type = not
				value = { type = any_vassal
					condition = { type = not value = { type = loyalty value = 1.0 } }
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = martial value = 10 }
			factor = 0.75
		}
		modifier = {
			condition = { type = martial value = 13 }
			factor = 0.75
		}
		modifier = {
			condition = { type = martial value = 16 }
			factor = 0.5
		}
		modifier = {
			condition = { type = martial value = 20 }
			factor = 0.5
		}
		modifier = {
			condition = { type = stewardship value = 10 }
			factor = 0.75
		}
		modifier = {
			condition = { type = stewardship value = 13 }
			factor = 0.75
		}
		modifier = {
			condition = { type = stewardship value = 16 }
			factor = 0.5
		}
		modifier = {
			condition = { type = stewardship value = 20 }
			factor = 0.5
		}
		modifier = {
			condition = { type = diplomacy value = 10 }
			factor = 0.75
		}
		modifier = {
			condition = { type = diplomacy value = 13 }
			factor = 0.75
		}
		modifier = {
			condition = { type = diplomacy value = 16 }
			factor = 0.5
		}
		modifier = {
			condition = { type = diplomacy value = 20 }
			factor = 0.5
		}
		modifier = {
			condition = { type = intrigue value = 10 }
			factor = 0.75
		}
		modifier = {
			condition = { type = intrigue value = 13 }
			factor = 0.75
		}
		modifier = {
			condition = { type = intrigue value = 16 }
			factor = 0.5
		}
		modifier = {
			condition = { type = intrigue value = 20 }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = martial value = 7 } }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = martial value = 5 } }
			factor = 1.15
		}
		modifier = {
			condition = { type = not value = { type = martial value = 3 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = martial value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = stewardship value = 7 } }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = stewardship value = 5 } }
			factor = 1.15
		}
		modifier = {
			condition = { type = not value = { type = stewardship value = 3 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = stewardship value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = diplomacy value = 7 } }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = diplomacy value = 5 } }
			factor = 1.15
		}
		modifier = {
			condition = { type = not value = { type = diplomacy value = 3 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = diplomacy value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 7 } }
			factor = 1.1
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 5 } }
			factor = 1.15
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 3 } }
			factor = 1.25
		}
		modifier = {
			condition = { type = not value = { type = intrigue value = 1 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = prestige value = 500 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 1000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = prestige value = 2000 }
			factor = 0.8
		}
		modifier = {
			condition = { type = prestige value = 5000 }
			factor = 0.5
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = not value = { type = ai } }
			factor = 2
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = not value = { type = ai } }
			factor = 2
		}
		modifier = {
			condition = { type = difficulty value = 3 }
			condition = { type = ai }
			factor = 0.5
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = ai }
			factor = 0.5
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.8 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.6 } }
			factor = 1.5
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.4 } }
			factor = 2
		}
		modifier = {
			condition = { type = not value = { type = efficiency value = 0.2 } }
			factor = 5
		}
		modifier = {
			condition = { type = trait value = excommunicated }
			factor = 10
		}
		modifier = {
			condition = { type = trait value = maniac }
			factor = 3
		}
		modifier = {
			condition = { type = trait value = schizofrenia }
			factor = 5
		}
		modifier = {
			condition = { type = trait value = kinslayer }
			factor = 10
		}
		modifier = {
			condition = { type = trait value = heretic }
			factor = 5
		}
		modifier = {
			condition = { type = trait value = wise }
			factor = 0.75
		}
		modifier = {
			condition = { type = trait value = just }
			factor = 0.5
		}
		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 1.25
		}
	}

	action_a = { #Thank God that's over with!
		effect = { type = remove_trait value = stutter }
		effect = { type = prestige scale = 5 }
	}
}

###############################################################################
###############################################################################

# PHASE EIGHT
# Extra loyalty hits for AI vassals to help nudge things along in a nasty way.

character_event = {  #AI loyalty hit event for civil war precipitation.
	id = 6460

	picture = "event_claim"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = trait value = intestinal_worm }
		condition = { type = ai }
	}

	mean_time_to_happen = {
		months = 60

		modifier = {
			condition = { type = liege
				condition = { type = atwar }			#liege is preoccupied
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = atwar }				#vassal is proccupied
			factor = 10
		}

		#Modifier for religion difference
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = religion value = catholic }
					condition = { type = liege condition = { type = not value = { type = religion value = catholic } } }
				}
				condition = { type = and
					condition = { type = religion value = orthodox }
					condition = { type = liege condition = { type = not value = { type = religion value = orthodox } } }
				}
				condition = { type = and
					condition = { type = religion value = pagan }
					condition = { type = liege condition = { type = not value = { type = religion value = pagan } } }
				}
				condition = { type = and
					condition = { type = religion value = moslem }
					condition = { type = liege condition = { type = not value = { type = religion value = moslem } } }
				}
			}
			factor = 0.1
		}

		#Prestige modifiers
		modifier = {
			condition = { type = prestige value = 125 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 250 }
			factor = 0.95
		}
		modifier = {
			condition = { type = prestige value = 500 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 1000 }
			factor = 0.9
		}
		modifier = {
			condition = { type = prestige value = 2000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = prestige value = 4000 }
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 250 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 500 }
			}
			factor = 1.05
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 1000 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 2000 }
			}
			factor = 1.15
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 3000 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = prestige value = 4000 }
			}
			factor = 1.25
		}
			
		#Modifiers for culture difference
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = culture value = lappish }
					condition = { type = liege condition = { type = not value = { type = culture value = lappish } } }
				}
				condition = { type = and
					condition = { type = culture value = norwegian }
					condition = { type = liege condition = { type = not value = { type = culture value = norwegian } } }
				}
				condition = { type = and
					condition = { type = culture value = swedish }
					condition = { type = liege condition = { type = not value = { type = culture value = swedish } } }
				}
				condition = { type = and
					condition = { type = culture value = scottish }
					condition = { type = liege condition = { type = not value = { type = culture value = scottish } } }
				}
				condition = { type = and
					condition = { type = culture value = saxon }
					condition = { type = liege condition = { type = not value = { type = culture value = saxon } } }
				}
				condition = { type = and
					condition = { type = culture value = irish }
					condition = { type = liege condition = { type = not value = { type = culture value = irish } } }
				}
				condition = { type = and
					condition = { type = culture value = welsh }
					condition = { type = liege condition = { type = not value = { type = culture value = welsh } } }
				}
				condition = { type = and
					condition = { type = culture value = english }
					condition = { type = liege condition = { type = not value = { type = culture value = english } } }
				}
				condition = { type = and
					condition = { type = culture value = finnish }
					condition = { type = liege condition = { type = not value = { type = culture value = finnish } } }
				}
				condition = { type = and
					condition = { type = culture value = prussian }
					condition = { type = liege condition = { type = not value = { type = culture value = prussian } } }
				}
				condition = { type = and
					condition = { type = culture value = lettigallish }
					condition = { type = liege condition = { type = not value = { type = culture value = lettigallish } } }
				}
				condition = { type = and
					condition = { type = culture value = lithuanian }
					condition = { type = liege condition = { type = not value = { type = culture value = lithuanian } } }
				}
				condition = { type = and
					condition = { type = culture value = german }
					condition = { type = liege condition = { type = not value = { type = culture value = german } } }
				}
				condition = { type = and
					condition = { type = culture value = dutch }
					condition = { type = liege condition = { type = not value = { type = culture value = dutch } } }
				}
				condition = { type = and
					condition = { type = culture value = frankish }
					condition = { type = liege condition = { type = not value = { type = culture value = frankish } } }
				}
				condition = { type = and
					condition = { type = culture value = norman }
					condition = { type = liege condition = { type = not value = { type = culture value = norman } } }
				}
				condition = { type = and
					condition = { type = culture value = basque }
					condition = { type = liege condition = { type = not value = { type = culture value = basque } } }
				}
				condition = { type = and
					condition = { type = culture value = castillan }
					condition = { type = liege condition = { type = not value = { type = culture value = castillan } } }
				}
				condition = { type = and
					condition = { type = culture value = catalan }
					condition = { type = liege condition = { type = not value = { type = culture value = catalan } } }
				}
				condition = { type = and
					condition = { type = culture value = italian }
					condition = { type = liege condition = { type = not value = { type = culture value = italian } } }
				}
				condition = { type = and
					condition = { type = culture value = latin }
					condition = { type = liege condition = { type = not value = { type = culture value = latin } } }
				}
				condition = { type = and
					condition = { type = culture value = hungarian }
					condition = { type = liege condition = { type = not value = { type = culture value = hungarian } } }
				}
				condition = { type = and
					condition = { type = culture value = southslavic }
					condition = { type = liege condition = { type = not value = { type = culture value = southslavic } } }
				}
				condition = { type = and
					condition = { type = culture value = russian }
					condition = { type = liege condition = { type = not value = { type = culture value = russian } } }
				}
				condition = { type = and
					condition = { type = culture value = greek }
					condition = { type = liege condition = { type = not value = { type = culture value = greek } } }
				}
				condition = { type = and
					condition = { type = culture value = georgian }
					condition = { type = liege condition = { type = not value = { type = culture value = georgian } } }
				}
				condition = { type = and
					condition = { type = culture value = armenian }
					condition = { type = liege condition = { type = not value = { type = culture value = armenian } } }
				}
				condition = { type = and
					condition = { type = culture value = alan }
					condition = { type = liege condition = { type = not value = { type = culture value = alan } } }
				}
				condition = { type = and
					condition = { type = culture value = cuman }
					condition = { type = liege condition = { type = not value = { type = culture value = cuman } } }
				}
				condition = { type = and
					condition = { type = culture value = pecheneg }
					condition = { type = liege condition = { type = not value = { type = culture value = pecheneg } } }
				}
				condition = { type = and
					condition = { type = culture value = turkish }
					condition = { type = liege condition = { type = not value = { type = culture value = turkish } } }
				}
				condition = { type = and
					condition = { type = culture value = muslim }
					condition = { type = liege condition = { type = not value = { type = culture value = muslim } } }
				}
				condition = { type = and
					condition = { type = culture value = persian }
					condition = { type = liege condition = { type = not value = { type = culture value = persian } } }
				}
				condition = { type = and
					condition = { type = culture value = mongol }
					condition = { type = liege condition = { type = not value = { type = culture value = mongol } } }
				}
				condition = { type = and
					condition = { type = culture value = polish }
					condition = { type = liege condition = { type = not value = { type = culture value = polish } } }
				}
				condition = { type = and
					condition = { type = culture value = bohemian }
					condition = { type = liege condition = { type = not value = { type = culture value = bohemian } } }
				}
				condition = { type = and
					condition = { type = culture value = portuguese }
					condition = { type = liege condition = { type = not value = { type = culture value = portuguese } } }
				}
			}
			factor = 0.5
		}

		#Nudge for traditional problem realms. This could be expanded or considerably refined in a (user-made) history mod.
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }
			}
			factor = 0.7
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }
			}
			factor = 0.85
		}

		#realm tier and situation modifiers
		modifier = {
			condition = { type = duchy }
			factor = 0.75
		}
		modifier = {
			condition = { type = has_vassal }
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 1.0 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.8 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.6 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.4 } }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.2 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = efficiency value = 0.05 } }
			}
			factor = 0.25
		}

		#high stats and traits and other fun stuff
		modifier = {
			condition = { type = martial value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = martial value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = stewardship value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = intrigue value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 10 }
			factor = 0.8
		}
		modifier = {
			condition = { type = diplomacy value = 15 }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = proud }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = selfish }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = energetic }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = valorous }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = reckless }
			factor = 0.9
		}
		modifier = {
			condition = { type = trait value = deceitful }
			factor = 0.8
		}
		modifier = {
			condition = { type = trait value = lazy }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = coward }
			factor = 1.25
		}
		modifier = {
			condition = { type = trait value = honest }
			factor = 1.1
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 1.5
		}
		modifier = {
			condition = { type = trait value = heretic }
			condition = { type = liege condition = { type = not value = { type = trait value = heretic } } }
			factor = 0.25
		}
		modifier = {
			condition = { type = not value = { type = trait value = heretic } }
			condition = { type = liege condition = { type = trait value = heretic } }
			factor = 0.25
		}
		modifier = {
			condition = { type = or
				condition = { type = and
					condition = { type = not value = { type = duchy } }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = is_independent }
						condition = { type = or
							condition = { type = duchy }
							condition = { type = kingdom }
						}
					} }
				}
				condition = { type = and
					condition = { type = duchy }
					condition = { type = father condition = { type = and
						condition = { type = ruler }
						condition = { type = kingdom }
					} }
				}
			}
			factor = 10.0
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = trait value = pneumonia }
					condition = { type = trait value = plagueinfested }
					condition = { type = trait value = maniac }
					condition = { type = trait value = schizofrenia }
					condition = { type = trait value = kinslayer }
					condition = { type = trait value = excommunicated }
				}
			}
			factor = 0.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = or
					condition = { type = has_law value = { popular_law = yes } }
					condition = { type = has_law value = { royal_preorgatory_law = yes } }
				}
			}
			factor = 0.66
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { feudal_contract_law = yes } } }
			factor = 1.5
		}
		modifier = {
			condition = { type = liege condition = { type = has_law value = { elective_law = yes } } }
			factor = 1.5
		}

		modifier = {
			condition = { type = difficulty value = 3 }		#hold AI realms together a bit more at higher difficulty levels
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = ai } }
			factor = 1.5
		}
		modifier = {
			condition = { type = difficulty value = 3 }		#ai will be fiesty with player on higher difficulties
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
		modifier = {
			condition = { type = difficulty value = 4 }
			condition = { type = realm_ruler condition = { type = not value = { type = ai } } }
			factor = 0.66
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.2 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.3 } }
			factor = 0.8
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.4 } }
			factor = 0.9
		}
		modifier = {
			condition = { type = loyalty value = 0.8 }
			factor = 1.15
		}
		modifier = {
			condition = { type = loyalty value = 0.9 }
			factor = 1.2
		}
		modifier = {
			condition = { type = loyalty value = 1.0 }
			factor = 1.2
		}
	}

	action_a = { #Player should never see this! Please save and reload your game!
		effect = { type = loyalty value = -0.1 }
		effect = { type = prestige value = 25 }
		effect = { type = random chance = 80
			effect = { type = loyalty value = -0.1 }
		}
		effect = { type = random chance = 60
			effect = { type = loyalty value = -0.1 }
		}
		effect = { type = random chance = 40
			effect = { type = loyalty value = -0.1 }
		}
		effect = { type = random chance = 20
			effect = { type = loyalty value = -0.1 }
		}
	}
}

#########################################################################################
# An assassination attempt on the liege instead of breaking free or starting civil war. #
#########################################################################################


character_event = { #Rather than confronting my liege directly, perhaps a dagger in the dark would soon put me on the throne?

	id = 6461
	picture = "event_intrigue"

	trigger = {
		condition = { type = is_vassal }
		condition = { type = trait value = intestinal_worm }				#marked as rebellious but not yet broken free
		condition = { type = not value = { type = trait value = honest } }		#honest people don't assassinate others...and acts as spam prevention
		condition = { type = or
			condition = { type = not value = { type = loyalty value = 0.5 } }
			condition = { type = and
				condition = { type = not value = { type = loyalty value = 0.75 } }
				condition = { type = region value = italy }
			}
			condition = { type = and
				condition = { type = not value = { type = loyalty value = 0.9 } }
				condition = { type = region value = balkan }
			}
		}
		condition = { type = not							#Catholic vassal still won't stir up trouble if catholic liege is on crusade
			value = { type = and
				condition = { type = religion value = catholic }
				condition = { type = liege
					condition = { type = religion value = catholic }
					condition = { type = not value = { type = on_crusade } }
				}
			}
		}
		condition = { type = or
			condition = { type = intrigue value = 11 }
			condition = { type = spymaster_csc
				condition = { type = intrigue value = 15 }
			}
			condition = { type = not
				value = { type = liege
					condition = { type = or
						condition = { type = intrigue value = 10 }
						condition = { type = spymaster_csc
							condition = { type = intrigue value = 13 }
						}
					}
				}
			}
		}
	}

	mean_time_to_happen = {

		months = 360

		modifier = {
			condition = { type = primary_heir }
			factor = 0.75
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.9 } }		
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.7 } }		
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.5 } }		
			factor = 0.9
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.3 } }		
			factor = 0.85
		}
		modifier = {
			condition = { type = not value = { type = loyalty value = 0.1 } }		
			factor = 0.75
		}
		modifier = {
			condition = { type = intrigue value = 13 }
			factor = 0.9
		}
		modifier = {
			condition = { type = intrigue value = 16 }
			factor = 0.9
		}
		modifier = {
			condition = { type = intrigue value = 19 }
			factor = 0.9
		}
		modifier = {
			condition = { type = spymaster_csc
				condition = { type = intrigue value = 16 }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = spymaster_csc
				condition = { type = intrigue value = 18 }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = primary_heir }					#primary Byz heir under elective law far more likely to backstab
			condition = { type = liege
				condition = { type = title value = BYZA }
				condition = { type = has_law value = { elective_law = yes } }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }			#HRE more likely to use sword than dagger
			}
			factor = 1.5
		}
		modifier = {
			condition = { type = age value = 20 }
			condition = { type = not value = { type = age value = 40 } }
			condition = { type = primary_heir }					#primary heir in any elective where age difference is great is like to resort to murder
			condition = { type = liege
				condition = { type = has_law value = { elective_law = yes } }
				condition = { type = age value = 50 }
			}
			factor = 0.66
		}
		modifier = {
			condition = { type = not value = { type = primary_heir } }		#vassals not likely to be elected as next ruler are not likely to kill...they'll revolt instead
			condition = { type = liege
				condition = { type = has_law value = { elective_law = yes } }
			}
			factor = 1.5
		}
		modifier = {									#far away are not likely to engage in assassinations
			condition = { type = or
				condition = { type = and
					condition = { type = county }			# This part is only for counts
					condition = { type = not value = { type = duchy } }
					condition = { type = or
						condition = { type = and
							condition = { type = region value = britain }
							condition = { type = capital condition = { type = region value = britain } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 3 } } # Eire
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = area value = 3 } } } } # Eire
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 18 } # Wales
										condition = { type = area value = 17 } # South England
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 18 } # Wales
										condition = { type = area value = 17 } # South England
										condition = { type = area value = 58 } # North England
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 58 } } # North England
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 18 } # Wales
										condition = { type = area value = 17 } # South England
										condition = { type = area value = 58 } # North England
										condition = { type = area value = 40 } # Scotland
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 40 } } # Scotland
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 58 } # North England
										condition = { type = area value = 40 } # Scotland
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = scandinavia }
							condition = { type = capital condition = { type = region value = scandinavia } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 1 } } # Iceland
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 1 } # Iceland
										condition = { type = province value = 35 } # Western Isles
										condition = { type = province value = 36 } # Orkney
										condition = { type = province value = 37 } # Caithness
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 265 } # Elbe
										condition = { type = province value = 305 } # Bornholm
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 265 } # Elbe
										condition = { type = area value = 303 } # Lake area
										condition = { type = area value = 304 } # Oder
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 268 } } # Fjords
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 268 } # Fjords
										condition = { type = area value = 280 } # Bothnia
										condition = { type = area value = 303 } # Lake area
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 280 } } # Bothnia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 280 } # Bothnia
										condition = { type = area value = 268 } # Fjords
										condition = { type = area value = 303 } # Lake area
										condition = { type = area value = 381 } # Baltic
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 303 } } # Lake area
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 268 } # Fjords
										condition = { type = area value = 280 } # Bothnia
										condition = { type = area value = 303 } # Lake area
										condition = { type = area value = 304 } # Oder
										condition = { type = area value = 265 } # Elbe
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 381 } } # Baltic
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 280 } # Bothnia
										condition = { type = area value = 387 } # White sea
										condition = { type = area value = 404 } # Vetluga
										condition = { type = area value = 410 } # Volkhov
										condition = { type = area value = 381 } # Baltic
										condition = { type = area value = 380 } # Livonia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = province value = 376 } } # sel
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 376 } # Livonia
										condition = { type = area value = 280 } # Bothnia
										condition = { type = area value = 303 } # Lake area
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = netherlands }
							condition = { type = capital condition = { type = region value = netherlands } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 76 } } # Schelde
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 76 } # Schelde
										condition = { type = area value = 80 } # Nieder-Rhein
										condition = { type = area value = 118 } # Rhein
										condition = { type = area value = 95 } # Seine
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 80 } } # Nieder-Rhein
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 76 } # Schelde
										condition = { type = area value = 80 } # Nieder-Rhein
										condition = { type = area value = 118 } # Rhein
										condition = { type = area value = 86 } # Wesser
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = france }
							condition = { type = capital condition = { type = region value = france } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 76 } } # Schelde
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 76 } # Schelde
										condition = { type = area value = 80 } # Nieder-Rhein
										condition = { type = area value = 118 } # Rhein
										condition = { type = area value = 95 } # Seine
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 95 } # Seine
										condition = { type = province value = 129 } # Verdun
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 76 } # Schelde
										condition = { type = area value = 95 } # Seine
										condition = { type = area value = 101 } # Aulne
										condition = { type = area value = 118 } # Rhein
										condition = { type = area value = 107 } # Loire
										condition = { type = area value = 225 } # Massif-Central
										condition = { type = area value = 226 } # Rhone
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 101 } } # Aulne
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 95 } # Seine
										condition = { type = area value = 101 } # Aulne
										condition = { type = area value = 107 } # Loire
										condition = { type = area value = 143 } # Garonne
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 107 } } # Loire
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 95 } # Seine
										condition = { type = area value = 101 } # Aulne
										condition = { type = area value = 107 } # Loire
										condition = { type = area value = 143 } # Garonne
										condition = { type = area value = 225 } # Massif-Central
										condition = { type = area value = 226 } # Rhone
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 143 } # Garonne
										condition = { type = province value = 151 } # Labourd
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 101 } # Aulne
										condition = { type = area value = 107 } # Loire
										condition = { type = area value = 143 } # Garonne
										condition = { type = area value = 225 } # Massif-Central
										condition = { type = area value = 226 } # Rhone
										condition = { type = area value = 151 } # Pyrenees
										condition = { type = area value = 207 } # Ribbaroja
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 225 } } # Massif-Central
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 107 } # Loire
										condition = { type = area value = 143 } # Garonne
										condition = { type = area value = 225 } # Massif-Central
										condition = { type = area value = 226 } # Rhone
										condition = { type = area value = 228 } # Alpes Martimes
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 226 } # Rhone
										condition = { type = area value = 228 } # Alpes Martimes
										condition = { type = province value = 134 } # Sundgau
										condition = { type = province value = 135 } # Besancon
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 95 } # Seine
										condition = { type = area value = 107 } # Loire
										condition = { type = area value = 143 } # Garonne
										condition = { type = area value = 225 } # Massif-Central
										condition = { type = area value = 226 } # Rhone
										condition = { type = area value = 228 } # Alpes Martimes
										condition = { type = area value = 207 } # Ribbaroja
										condition = { type = area value = 135 } # Rhein
										condition = { type = area value = 249 } # Baden
										condition = { type = area value = 241 } # Alps
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = spain }
							condition = { type = capital condition = { type = region value = spain } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 152 } } # Pyrenees
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 152 } # Pyrenees
										condition = { type = area value = 154 } # Leyn
										condition = { type = area value = 172 } # Ebro
										condition = { type = area value = 202 } # Ribbaroja
										condition = { type = area value = 150 } # Garonne
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 154 } } # Leyn
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 152 } # Pyrenees
										condition = { type = area value = 154 } # Leyn
										condition = { type = area value = 160 } # Tejo
										condition = { type = area value = 197 } # La mancha
										condition = { type = area value = 172 } # Ebro
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 160 } } # Tejo
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 154 } # Leyn
										condition = { type = area value = 160 } # Tejo
										condition = { type = area value = 197 } # La mancha
										condition = { type = area value = 162 } # Extremadura
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 162 } } # Extremadura
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 162 } # Extremadura
										condition = { type = area value = 165 } # Sierra Nevada
										condition = { type = area value = 160 } # Tejo
										condition = { type = area value = 197 } # La mancha
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 165 } } # Sierra Nevada
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 162 } # Extremadura
										condition = { type = area value = 165 } # Sierra Nevada
										condition = { type = area value = 197 } # La mancha
										condition = { type = area value = 172 } # Ebro
										condition = { type = area value = 827 } # Baleares
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 197 } } # La mancha
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 162 } # Extremadura
										condition = { type = area value = 165 } # Sierra Nevada
										condition = { type = area value = 160 } # Tejo
										condition = { type = area value = 197 } # La mancha
										condition = { type = area value = 154 } # Leyn
										condition = { type = area value = 172 } # Ebro
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 172 } } # Ebro
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 165 } # Sierra Nevada
										condition = { type = area value = 197 } # La mancha
										condition = { type = area value = 154 } # Leyn
										condition = { type = area value = 172 } # Ebro
										condition = { type = area value = 200 } # Pyrenees
										condition = { type = area value = 202 } # Ribbaroja
										condition = { type = area value = 827 } # Baleares
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 202 } } # Ribbaroja
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 172 } # Ebro
										condition = { type = area value = 200 } # Pyrenees
										condition = { type = area value = 202 } # Ribbaroja
										condition = { type = area value = 827 } # Baleares
										condition = { type = area value = 211 } # Garonne
										condition = { type = area value = 212 } # Rhone
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = italy }
							condition = { type = capital condition = { type = region value = italy } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 236 } } # Alpes Martimes
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 236 } # Alpes Martimes
										condition = { type = area value = 221 } # Rhone
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 233 } # Po
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 233 } # Po
										condition = { type = area value = 456 } # Alpi Carniche
										condition = { type = province value = 317 } # Trent
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 236 } # Alpes Martimes
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 233 } # Po
										condition = { type = area value = 323 } # Papal States
										condition = { type = area value = 324 } # Sardgena
										condition = { type = area value = 456 } # Alpi Carniche
										condition = { type = area value = 458 } # Dinara Planina
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 323 } } # Papal States
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 233 } # Po
										condition = { type = area value = 323 } # Papal States
										condition = { type = area value = 324 } # Sardgena
										condition = { type = area value = 334 } # Apennino
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 324 } } # Sardgena
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 233 } # Po
										condition = { type = area value = 323 } # Papal States
										condition = { type = area value = 324 } # Sardgena
										condition = { type = area value = 236 } # Alpes Martimes
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 334 } } # Apennino
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 323 } # Papal States
										condition = { type = area value = 334 } # Apennino
										condition = { type = area value = 339 } # Sicilia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 339 } } # Sicilia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 334 } # Apennino
										condition = { type = area value = 339 } # Sicilia
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = germany }
							condition = { type = capital condition = { type = region value = germany } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 85 } # Nieder-Rhein
										condition = { type = area value = 86 } # Wesser
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 85 } # Nieder-Rhein
										condition = { type = area value = 86 } # Wesser
										condition = { type = area value = 115 } # Schelde
										condition = { type = area value = 119 } # Rhein
										condition = { type = area value = 256 } # Elbe
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 119 } # Rhein
										condition = { type = area value = 115 } # Schelde
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 85 } # Nieder-Rhein
										condition = { type = area value = 86 } # Wesser
										condition = { type = area value = 115 } # Schelde
										condition = { type = area value = 119 } # Rhein
										condition = { type = area value = 123 } # Main
										condition = { type = area value = 136 } # Seine
										condition = { type = area value = 240 } # Rhone
										condition = { type = area value = 242 } # Alps
										condition = { type = area value = 249 } # Baden
										condition = { type = area value = 256 } # Elbe
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 123 } } # Main
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 119 } # Rhein
										condition = { type = area value = 123 } # Main
										condition = { type = area value = 255 } # Baden
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 238 } } # Alps
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 119 } # Rhein
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 255 } # Baden
										condition = { type = area value = 240 } # Rhone
										condition = { type = area value = 237 } # Alps-Martimes
										condition = { type = area value = 235 } # Po
										condition = { type = area value = 313 } # Danube
										condition = { type = area value = 448 } # Donau
										condition = { type = area value = 455 } # Alpi Carniche
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 255 } } # Baden
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 119 } # Rhein
										condition = { type = area value = 123 } # Main
										condition = { type = area value = 255 } # Baden
										condition = { type = area value = 256 } # Elbe
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 313 } # Danube
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 256 } } # Elbe
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 119 } # Rhein
										condition = { type = area value = 255 } # Baden
										condition = { type = area value = 256 } # Elbe
										condition = { type = area value = 257 } # Wesser
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 304 } } # Oder
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 303 } # Lake area
										condition = { type = area value = 304 } # Oder
										condition = { type = area value = 256 } # Elbe
										condition = { type = area value = 363 } # Vltava
										condition = { type = area value = 368 } # Wisla
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 313 } } # Danube
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 256 } # Elbe
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 255 } # Baden
										condition = { type = area value = 313 } # Danube
										condition = { type = area value = 448 } # Donau
										condition = { type = area value = 363 } # Vltava
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 363 } } # Vltava
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 256 } # Elbe
										condition = { type = area value = 313 } # Danube
										condition = { type = area value = 304 } # Oder
										condition = { type = area value = 448 } # Donau
										condition = { type = area value = 363 } # Vltava
										condition = { type = area value = 368 } # Wisla
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 368 } } # Wisla
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 304 } # Oder
										condition = { type = area value = 363 } # Vltava
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 371 } # Livonia
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 442 } # Donau
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 534 } # Dniestr
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 448 } } # Donau
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 313 } # Danube
										condition = { type = area value = 448 } # Donau
										condition = { type = area value = 445 } # Duna
										condition = { type = area value = 363 } # Vltava
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 455 } # Alpi Carniche
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 460 } # Dinara planina
										condition = { type = area value = 518 } # Dunav
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 455 } } # Alpi Carniche
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 448 } # Donau
										condition = { type = area value = 358 } # Po
										condition = { type = area value = 455 } # Alpi Carniche
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 460 } # Dinara planina
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = eastern_europe }
							condition = { type = capital condition = { type = region value = eastern_europe } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 368 } } # Wisla
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 304 } # Oder
										condition = { type = area value = 363 } # Vltava
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 371 } # Livonia
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 442 } # Donau
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 534 } # Dniestr
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 371 } } # Livonia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 371 } # Livonia
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 412 } # Volkhov
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 420 } } # Daugava
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 371 } # Livonia
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 412 } # Volkhov
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 551 } # Sredne Russka
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 424 } } # Polesye
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 534 } # Dniester
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 551 } # Sredne Russka
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 443 } } # Duna
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 443 } # Duna
										condition = { type = area value = 442 } # Donau
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 525 } # Carpathians
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 448 } } # Donau
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 313 } # Danube
										condition = { type = area value = 448 } # Donau
										condition = { type = area value = 445 } # Duna
										condition = { type = area value = 363 } # Vltava
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 455 } # Alpi Carniche
										condition = { type = area value = 238 } # Alps
										condition = { type = area value = 460 } # Dinara planina
										condition = { type = area value = 518 } # Dunav
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 512 } } # Dunarea
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 498 } # Maritsa
										condition = { type = area value = 512 } # Dunarea
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 534 } # Dniester
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 521 } } # Dunav
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 443 } # Duna
										condition = { type = area value = 442 } # Donau
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 512 } # Dunarea
										condition = { type = area value = 460 } # Dinara Planina
										condition = { type = area value = 468 } # Crna Gora
										condition = { type = area value = 502 } # Axios
										condition = { type = area value = 498 } # Maritsa
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 525 } } # Carpathians
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 443 } # Duna
										condition = { type = area value = 442 } # Donau
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 512 } # Dunarea
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 534 } # Dniester
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 534 } } # Dniester
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 534 } # Dniester
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 512 } # Dunarea
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 547 } } # Dnepr
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 534 } # Dniester
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 551 } # Sredne Russka
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 559 } # Crimea
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = balkan }
							condition = { type = capital condition = { type = region value = balkan } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 521 } } # Dunav
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 443 } # Duna
										condition = { type = area value = 442 } # Donau
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 525 } # Carpathians
										condition = { type = area value = 512 } # Dunarea
										condition = { type = area value = 460 } # Dinara Planina
										condition = { type = area value = 468 } # Crna Gora
										condition = { type = area value = 502 } # Axios
										condition = { type = area value = 498 } # Maritsa
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 458 } } # Dinara Planina
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 460 } # Dinara Planina
										condition = { type = area value = 358 } # Po
										condition = { type = area value = 457 } # Alpi Carniche
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 442 } # Donau
										condition = { type = area value = 468 } # Crna Gora
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 468 } } # Crna Gora
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 460 } # Dinara Planina
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 468 } # Crna Gora
										condition = { type = area value = 470 } # Pindhos Oros
										condition = { type = area value = 502 } # Axios
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 470 } } # Pindhos Oros
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 468 } # Crna Gora
										condition = { type = area value = 470 } # Pindhos Oros
										condition = { type = area value = 502 } # Axios
										condition = { type = area value = 474 } # Cyclades
										condition = { type = area value = 476 } # Peloponnesos
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 474 } } # Cyclades
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 470 } # Pindhos Oros
										condition = { type = area value = 502 } # Axios
										condition = { type = area value = 474 } # Cyclades
										condition = { type = area value = 476 } # Peloponnesos
										condition = { type = area value = 744 } # Ionia
										condition = { type = area value = 755 } # Anatolia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 476 } } # Peloponnesos
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 470 } # Pindhos Oros
										condition = { type = area value = 502 } # Axios
										condition = { type = area value = 474 } # Cyclades
										condition = { type = area value = 476 } # Peloponnesos
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 502 } } # Axios
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 470 } # Pindhos Oros
										condition = { type = area value = 502 } # Axios
										condition = { type = area value = 474 } # Cyclades
										condition = { type = area value = 476 } # Peloponnesos
										condition = { type = area value = 468 } # Crna Gora
										condition = { type = area value = 494 } # Maritsa
										condition = { type = area value = 521 } # Dunav
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 494 } } # Maritsa
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 502 } # Axios
										condition = { type = area value = 494 } # Maritsa
										condition = { type = area value = 521 } # Dunav
										condition = { type = area value = 509 } # Dunarea
										condition = { type = area value = 744 } # Ionia
										condition = { type = area value = 755 } # Anatolia
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = russia }
							condition = { type = capital condition = { type = region value = russia } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 387 } } # White Sea
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 387 } # White Sea
										condition = { type = area value = 385 } # Baltic
										condition = { type = area value = 399 } # Kama
										condition = { type = area value = 404 } # Vetluga
										condition = { type = area value = 410 } # Volkhov
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 399 } } # Kama
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 387 } # White Sea
										condition = { type = area value = 399 } # Kama
										condition = { type = area value = 404 } # Vetluga
										condition = { type = area value = 586 } # Sura
										condition = { type = area value = 611 } # Bulgar
										condition = { type = area value = 612 } # Urals
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 404 } } # Vetluga
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 387 } # White Sea
										condition = { type = area value = 399 } # Kama
										condition = { type = area value = 404 } # Vetluga
										condition = { type = area value = 586 } # Sura
										condition = { type = area value = 570 } # Oka
										condition = { type = area value = 410 } # Volkhov
										condition = { type = area value = 411 } # Baltic
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 410 } } # Volkhov
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 387 } # White Sea
										condition = { type = area value = 411 } # Baltic
										condition = { type = area value = 404 } # Vetluga
										condition = { type = area value = 570 } # Oka
										condition = { type = area value = 410 } # Volkhov
										condition = { type = area value = 380 } # Livonia
										condition = { type = area value = 418 } # Daugava
										condition = { type = area value = 551 } # Sredne Russka
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 411 } } # Baltic
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 280 } # Bothnia
										condition = { type = area value = 387 } # White sea
										condition = { type = area value = 404 } # Vetluga
										condition = { type = area value = 410 } # Volkhov
										condition = { type = area value = 381 } # Baltic
										condition = { type = area value = 380 } # Livonia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 420 } } # Daugava
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 371 } # Livonia
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 412 } # Volkhov
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 551 } # Sredne Russka
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 424 } } # Polesye
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 368 } # Wisla
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 534 } # Dniester
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 551 } # Sredne Russka
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 551 } } # Sredne Russka
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 420 } # Daugava
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 551 } # Sredne Russka
										condition = { type = area value = 410 } # Volkhov
										condition = { type = area value = 570 } # Oka
										condition = { type = area value = 579 } # Khoper
										condition = { type = area value = 590 } # Sura
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 547 } } # Dnepr
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 424 } # Polesye
										condition = { type = area value = 534 } # Dniester
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 551 } # Sredne Russka
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 559 } # Crimea
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 559 } } # Crimea
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 598 } # Kuban
										condition = { type = area value = 559 } # Crimea
										condition = { type = province value = 496 } # Byzantion
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 563 } } # Don
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 547 } # Dnepr
										condition = { type = area value = 551 } # Sredne Russka
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 579 } # Khoper
										condition = { type = area value = 598 } # Kuban
										condition = { type = area value = 609 } # Bulgar
										condition = { type = area value = 608 } # Depression
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 570 } } # Oka
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 551 } # Sredne Russka
										condition = { type = area value = 410 } # Volkhov
										condition = { type = area value = 570 } # Oka
										condition = { type = area value = 590 } # Sura
										condition = { type = area value = 404 } # Vetluga
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 579 } } # Khoper
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 551 } # Sredne Russka
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 579 } # Khoper
										condition = { type = area value = 590 } # Sura
										condition = { type = area value = 609 } # Bulgar
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 590 } } # Sura
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 551 } # Sredne Russka
										condition = { type = area value = 579 } # Khoper
										condition = { type = area value = 590 } # Sura
										condition = { type = area value = 609 } # Bulgar
										condition = { type = area value = 399 } # Kama
										condition = { type = area value = 404 } # Vetluga
										condition = { type = area value = 570 } # Oka
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 598 } } # Kuban
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 559 } # Crimea
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 598 } # Kuban
										condition = { type = area value = 602 } # Caucasus
										condition = { type = area value = 608 } # Depression
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 600 } } # Caucasus
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 598 } # Kuban
										condition = { type = area value = 602 } # Caucasus
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 672 } # Armenia
										condition = { type = area value = 669 } # Kura
										condition = { type = area value = 705 } # Weird Shit
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 608 } } # Depression
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 598 } # Kuban
										condition = { type = area value = 602 } # Caucasus
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 609 } # Bulgar
										condition = { type = area value = 617 } # Samara
										condition = { type = area value = 618 } # Khazaks
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 609 } } # Bulgar
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 399 } # Kama
										condition = { type = area value = 586 } # Sura
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 609 } # Bulgar
										condition = { type = area value = 579 } # Khoper
										condition = { type = area value = 612 } # Urals
										condition = { type = area value = 617 } # Samara
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 612 } } # Urals
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 399 } # Kama
										condition = { type = area value = 609 } # Bulgar
										condition = { type = area value = 612 } # Urals
										condition = { type = area value = 617 } # Samara
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 617 } } # Samara
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 609 } # Bulgar
										condition = { type = area value = 612 } # Urals
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 617 } # Samara
										condition = { type = area value = 618 } # Khazaks
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 618 } } # Khazaks
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 617 } # Samara
										condition = { type = area value = 618 } # Khazaks
										condition = { type = area value = 623 } # Ustyurt
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = middle_east }
							condition = { type = capital condition = { type = region value = middle_east } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 618 } } # Khazaks
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 617 } # Samara
										condition = { type = area value = 618 } # Khazaks
										condition = { type = area value = 623 } # Ustyurt
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 623 } } # Ustyurt
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 618 } # Khazaks
										condition = { type = area value = 623 } # Ustyurt
										condition = { type = area value = 626 } # Karakumy
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 626 } } # Karakumy
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 623 } # Ustyurt
										condition = { type = area value = 626 } # Karakumy
										condition = { type = area value = 630 } # Elburz
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 630 } } # Elburz
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 626 } # Karakumy
										condition = { type = area value = 630 } # Elburz
										condition = { type = area value = 635 } # Salt Desert
										condition = { type = area value = 664 } # Zagros
										condition = { type = area value = 687 } # Kurdistan
										condition = { type = area value = 670 } # Armenia
										condition = { type = area value = 668 } # Kura
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 635 } } # Salt Desert
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 630 } # Elburz
										condition = { type = area value = 635 } # Salt Desert
										condition = { type = area value = 664 } # Zagros
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 664 } } # Zagros
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 630 } # Elburz
										condition = { type = area value = 635 } # Salt Desert
										condition = { type = area value = 664 } # Zagros
										condition = { type = area value = 645 } # Mesopotamia
										condition = { type = area value = 687 } # Kurdistan
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 645 } } # Mesopotamia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 664 } # Zagros
										condition = { type = area value = 645 } # Mesopotamia
										condition = { type = area value = 687 } # Kurdistan
										condition = { type = area value = 650 } # Ad Dahna
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 701 } # Armenia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 650 } } # Ad Dahna
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 645 } # Mesopotamia
										condition = { type = area value = 650 } # Ad Dahna
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 668 } } # Kura
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 673 } # Caucasus
										condition = { type = area value = 670 } # Armenia
										condition = { type = area value = 668 } # Kura
										condition = { type = area value = 630 } # Elburz
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 670 } } # Armenia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 673 } # Caucasus
										condition = { type = area value = 670 } # Armenia
										condition = { type = area value = 668 } # Kura
										condition = { type = area value = 630 } # Elburz
										condition = { type = area value = 645 } # Mesopotamia
										condition = { type = area value = 705 } # Weird Shit
										condition = { type = area value = 707 } # Taurus
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 737 } # Anatolia
										condition = { type = area value = 687 } # Kurdistan
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 600 } } # Caucasus
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 598 } # Kuban
										condition = { type = area value = 602 } # Caucasus
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 672 } # Armenia
										condition = { type = area value = 669 } # Kura
										condition = { type = area value = 705 } # Weird Shit
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 608 } } # Depression
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 598 } # Kuban
										condition = { type = area value = 602 } # Caucasus
										condition = { type = area value = 608 } # Depression
										condition = { type = area value = 563 } # Don
										condition = { type = area value = 609 } # Bulgar
										condition = { type = area value = 617 } # Samara
										condition = { type = area value = 618 } # Khazaks
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 687 } } # Kurdistan
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 630 } # Elburz
										condition = { type = area value = 664 } # Zagros
										condition = { type = area value = 645 } # Mesopotamia
										condition = { type = area value = 687 } # Kurdistan
										condition = { type = area value = 670 } # Armenia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 692 } } # Syrian Desert
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 645 } # Mesopotamia
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 670 } # Armenia
										condition = { type = area value = 707 } # Taurus
										condition = { type = area value = 718 } # Al Hijaz
										condition = { type = area value = 724 } # Jordan
										condition = { type = area value = 762 } # Phoenicia
										condition = { type = area value = 783 } # Sinai
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 705 } } # Weird Shit
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 602 } # Caucasus
										condition = { type = area value = 672 } # Armenia
										condition = { type = area value = 738 } # Anatolia
										condition = { type = area value = 705 } # Weird Shit
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 707 } } # Taurus
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 670 } # Armenia
										condition = { type = area value = 707 } # Taurus
										condition = { type = area value = 762 } # Phoenicia
										condition = { type = area value = 738 } # Anatolia
										condition = { type = area value = 756 } # Cyprus
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 718 } } # Al Hijaz
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 718 } # Al Hijaz
										condition = { type = area value = 783 } # Sinai
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 724 } } # Jordan
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 724 } # Jordan
										condition = { type = area value = 783 } # Sinai
										condition = { type = area value = 762 } # Phoenicia
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = asia_minor }
							condition = { type = capital condition = { type = region value = asia_minor } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 738 } } # Anatolia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 705 } # Weird Shit
										condition = { type = area value = 670 } # Armenia
										condition = { type = area value = 707 } # Taurus
										condition = { type = area value = 738 } # Anatolia
										condition = { type = area value = 744 } # Ionia
										condition = { type = area value = 496 } # Maritsa
										condition = { type = area value = 483 } # Cyclades
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 744 } } # Ionia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 738 } # Anatolia
										condition = { type = area value = 744 } # Ionia
										condition = { type = area value = 496 } # Maritsa
										condition = { type = area value = 483 } # Cyclades
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 707 } } # Taurus
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 670 } # Armenia
										condition = { type = area value = 707 } # Taurus
										condition = { type = area value = 762 } # Phoenicia
										condition = { type = area value = 738 } # Anatolia
										condition = { type = area value = 756 } # Cyprus
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 756 } } # Cyprus
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 707 } # Taurus
										condition = { type = area value = 762 } # Phoenicia
										condition = { type = area value = 756 } # Cyprus
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 762 } } # Phoenicia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 724 } # Jordan
										condition = { type = area value = 707 } # Taurus
										condition = { type = area value = 762 } # Phoenicia
										condition = { type = area value = 756 } # Cyprus
										condition = { type = area value = 780 } # Sinai
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 724 } } # Jordan
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 724 } # Jordan
										condition = { type = area value = 783 } # Sinai
										condition = { type = area value = 762 } # Phoenicia
									} } } }
								}
							}
						}
						condition = { type = and
							condition = { type = region value = north_africa }
							condition = { type = capital condition = { type = region value = north_africa } }
							condition = { type = or
								condition = { type = and
									condition = { type = capital condition = { type = area value = 780 } } # Sinai
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 724 } # Jordan
										condition = { type = area value = 783 } # Sinai
										condition = { type = area value = 762 } # Phoenicia
										condition = { type = area value = 692 } # Syrian Desert
										condition = { type = area value = 721 } # Al Hijaz
										condition = { type = area value = 789 } # Delta
										condition = { type = area value = 790 } # Nubia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 790 } } # Nubia
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 783 } # Sinai
										condition = { type = area value = 789 } # Delta
										condition = { type = area value = 790 } # Nubia
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 789 } } # Delta
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 783 } # Sinai
										condition = { type = area value = 789 } # Delta
										condition = { type = area value = 790 } # Nubia
										condition = { type = area value = 804 } # Qattara
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 804 } } # Qattara
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 789 } # Delta
										condition = { type = area value = 804 } # Qattara
										condition = { type = area value = 805 } # Cyrenaica
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 805 } } # Cyrenaica
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 804 } # Qattara
										condition = { type = area value = 805 } # Cyrenaica
										condition = { type = area value = 810 } # Tripolitania
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 810 } } # Tripolitania
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 805 } # Cyrenaica
										condition = { type = area value = 810 } # Tripolitania
										condition = { type = area value = 815 } # Carthago
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = province value = 812 } } # Malta
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 339 } # Sicilia
										condition = { type = area value = 805 } # Cyrenaica
										condition = { type = area value = 810 } # Tripolitania
										condition = { type = area value = 815 } # Carthago
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 815 } } # Carthago
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 810 } # Tripolitania
										condition = { type = area value = 815 } # Carthago
										condition = { type = area value = 821 } # Atlas
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 821 } } # Atlas
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 815 } # Carthago
										condition = { type = area value = 821 } # Atlas
										condition = { type = area value = 829 } # Berbers
										condition = { type = area value = 831 } # Algiers
										condition = { type = area value = 837 } # Haut Atlas
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 829 } } # Berbers
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 821 } # Atlas
										condition = { type = area value = 829 } # Berbers
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 827 } } # Baleares
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 827 } # Baleares
										condition = { type = area value = 171 } # Sierra Nevada
										condition = { type = area value = 174 } # Ebro
										condition = { type = area value = 204 } # Ribbaroja
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 831 } } # Algiers
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 821 } # Atlas
										condition = { type = area value = 831 } # Algiers
										condition = { type = area value = 837 } # Haut Atlas
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 837 } } # Haut Atlas
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 821 } # Atlas
										condition = { type = area value = 831 } # Algiers
										condition = { type = area value = 837 } # Haut Atlas
										condition = { type = area value = 839 } # Marocco
										condition = { type = area value = 846 } # Sahara
										condition = { type = area value = 848 } # Canaries
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = area value = 839 } } # Marocco
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 837 } # Haut Atlas
										condition = { type = area value = 839 } # Marocco
									} } } }
								}
								condition = { type = and
									condition = { type = capital condition = { type = or
										condition = { type = area value = 846 } # Sahara
										condition = { type = area value = 848 } # Canaries
									} }
									condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
										condition = { type = area value = 837 } # Haut Atlas
										condition = { type = area value = 846 } # Sahara
										condition = { type = area value = 848 } # Canaries
									} } } }
								}
							}
						}
					}
				}
				condition = { type = and
					condition = { type = duchy }			# This part is for dukes
					condition = { type = or
						condition = { type = and
							condition = { type = region value = britain }
							condition = { type = capital condition = { type = region value = britain } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = britain }
								condition = { type = area value = 1 } # Iceland
								condition = { type = area value = 274 } # Fjords
								condition = { type = area value = 267 } # Elbe
								condition = { type = area value = 303 } # Lake area
								condition = { type = area value = 86 } # Wesser
								condition = { type = area value = 84 } # Nieder-Rhein
								condition = { type = area value = 78 } # Schelde
								condition = { type = area value = 96 } # Seine
								condition = { type = area value = 101 } # Aulne
								condition = { type = area value = 108 } # Loire
							} } } }
						}
						condition = { type = and
							condition = { type = region value = scandinavia }
							condition = { type = capital condition = { type = region value = scandinavia } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = scandinavia }
								condition = { type = area value = 40 } # Scotland
								condition = { type = area value = 57 } # North England
								condition = { type = area value = 70 } # South England
								condition = { type = area value = 86 } # Wesser
								condition = { type = area value = 84 } # Nieder-Rhein
								condition = { type = area value = 267 } # Elbe
								condition = { type = area value = 365 } # Oder
								condition = { type = area value = 368 } # Wisla
								condition = { type = area value = 371 } # Livonia
								condition = { type = area value = 410 } # Volkhov
								condition = { type = area value = 393 } # White Sea
								condition = { type = area value = 409 } # Vetluga
								condition = { type = area value = 570 } # Oka
							} } } }
						}
						condition = { type = and
							condition = { type = region value = netherlands }
							condition = { type = capital condition = { type = region value = netherlands } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = area value = 57 } # North England
								condition = { type = area value = 70 } # South England
								condition = { type = area value = 94 } # Schelde
								condition = { type = area value = 112 } # Seine
								condition = { type = area value = 138 } # Loire
								condition = { type = area value = 118 } # Rhein
								condition = { type = area value = 121 } # Main
								condition = { type = area value = 255 } # Baden
								condition = { type = area value = 86 } # Wesser
								condition = { type = area value = 84 } # Nieder-Rhein
								condition = { type = area value = 267 } # Elbe
							} } } }
						}
						condition = { type = and
							condition = { type = region value = france }
							condition = { type = capital condition = { type = region value = france } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = france }
								condition = { type = region value = netherlands }
								condition = { type = area value = 70 } # South England
								condition = { type = area value = 94 } # Schelde
								condition = { type = area value = 118 } # Rhein
								condition = { type = area value = 121 } # Main
								condition = { type = area value = 255 } # Baden
								condition = { type = area value = 242 } # Alps
								condition = { type = area value = 236 } # Alpes Martimes
								condition = { type = area value = 235 } # Po
								condition = { type = area value = 153 } # Pyrenees
								condition = { type = area value = 154 } # Leyn
								condition = { type = area value = 173 } # Ebro
								condition = { type = area value = 204 } # Ribbaroja
							} } } }
						}
						condition = { type = and
							condition = { type = region value = spain }
							condition = { type = capital condition = { type = region value = spain } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = spain }
								condition = { type = area value = 143 } # Garonne
								condition = { type = area value = 218 } # Massif Central
								condition = { type = area value = 212 } # Rhone
								condition = { type = area value = 821 } # Atlas
								condition = { type = area value = 827 } # Baleareas
								condition = { type = area value = 831 } # Algiers
								condition = { type = area value = 838 } # Haut Atlas
								condition = { type = area value = 839 } # Marocco
							} } } }
						}
						condition = { type = and
							condition = { type = region value = italy }
							condition = { type = capital condition = { type = region value = italy } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = italy }
								condition = { type = area value = 224 } # Massif Central
								condition = { type = area value = 228 } # Alpes Martimes
								condition = { type = area value = 212 } # Rhone
								condition = { type = area value = 248 } # Alps
								condition = { type = area value = 450 } # Donau
								condition = { type = area value = 455 } # Alpi Carniche
								condition = { type = area value = 458 } # Dinara Planina
								condition = { type = area value = 468 } # Crna Gora
								condition = { type = area value = 470 } # Pindhos Oros
								condition = { type = area value = 482 } # Peloponnesos
								condition = { type = area value = 474 } # Cyclades
								condition = { type = area value = 805 } # Cyrenaica
								condition = { type = area value = 810 } # Tripolitania
								condition = { type = area value = 815 } # Carthago
							} } } }
						}
						condition = { type = and
							condition = { type = region value = germany }
							condition = { type = capital condition = { type = region value = germany } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = germany }
								condition = { type = area value = 79 } # Schelde
								condition = { type = area value = 80 } # Neider-Rhein
								condition = { type = area value = 112 } # Seine
								condition = { type = area value = 129 } # Rhein
								condition = { type = area value = 228 } # Alpes Martimes
								condition = { type = area value = 212 } # Rhone
								condition = { type = area value = 317 } # Alps
								condition = { type = area value = 235 } # Po
								condition = { type = area value = 450 } # Donau
								condition = { type = area value = 455 } # Alpi Carniche
								condition = { type = area value = 458 } # Dinara Planina
								condition = { type = area value = 521 } # Dunav
								condition = { type = area value = 525 } # Carpathians
								condition = { type = area value = 528 } # Wisla
								condition = { type = area value = 303 } # Lake area
								condition = { type = area value = 305 } # Oder
								condition = { type = area value = 267 } # Elbe
								condition = { type = area value = 268 } # Fjords
							} } } }
						}
						condition = { type = and
							condition = { type = region value = eastern_europe }
							condition = { type = capital condition = { type = region value = eastern_europe } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = eastern_europe }
								condition = { type = region value = balkan }
								condition = { type = area value = 266 } # Elbe
								condition = { type = area value = 303 } # Lake Area
								condition = { type = area value = 304 } # Oder
								condition = { type = area value = 290 } # Bothnia
								condition = { type = area value = 381 } # Baltic
								condition = { type = area value = 410 } # Volkhov
								condition = { type = area value = 393 } # White Sea
								condition = { type = area value = 409 } # Vetluga
								condition = { type = area value = 570 } # Oka
								condition = { type = area value = 553 } # Sredne Russka
								condition = { type = area value = 556 } # Dnepr
								condition = { type = area value = 565 } # Don
								condition = { type = area value = 559 } # Crimea
								condition = { type = area value = 368 } # Wisla
								condition = { type = area value = 437 } # Vltava
								condition = { type = area value = 362 } # Danube
								condition = { type = area value = 448 } # Donau
								condition = { type = area value = 455 } # Alpi Carniche
							} } } }
						}
						condition = { type = and
							condition = { type = region value = balkan }
							condition = { type = capital condition = { type = region value = balkan } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = balkan }
								condition = { type = area value = 455 } # Alpi Carniche
								condition = { type = area value = 356 } # Po
								condition = { type = area value = 450 } # Donau
								condition = { type = area value = 445 } # Duna
								condition = { type = area value = 521 } # Dunav
								condition = { type = area value = 513 } # Dunarea
								condition = { type = area value = 540 } # Carpathians
								condition = { type = area value = 541 } # Dniestr
								condition = { type = area value = 345 } # Appennino
								condition = { type = area value = 802 } # Delta
								condition = { type = area value = 804 } # Qattara
								condition = { type = area value = 805 } # Cyrenaica
								condition = { type = area value = 744 } # Ionia
								condition = { type = area value = 738 } # Anatolia
								condition = { type = area value = 760 } # Taurus
							} } } }
						}
						condition = { type = and
							condition = { type = region value = russia }
							condition = { type = capital condition = { type = region value = russia } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = russia }
								condition = { type = area value = 381 } # Baltic
								condition = { type = area value = 290 } # Bothnia
								condition = { type = area value = 292 } # Lake Area
								condition = { type = area value = 371 } # Livonia
								condition = { type = area value = 420 } # Daugava
								condition = { type = area value = 368 } # Wisla
								condition = { type = area value = 424 } # Polesye
								condition = { type = area value = 540 } # Carpathians
								condition = { type = area value = 541 } # Dniestr
								condition = { type = area value = 512 } # Dunarea
								condition = { type = area value = 496 } # Maritsa
								condition = { type = area value = 738 } # Anatolia
								condition = { type = area value = 705 } # Weird Shit
								condition = { type = area value = 672 } # Armenia
								condition = { type = area value = 678 } # Caucasus
								condition = { type = area value = 669 } # Kura
								condition = { type = area value = 675 } # Depression
								condition = { type = area value = 621 } # Khazaks
								condition = { type = area value = 623 } # Ustyurt
								condition = { type = area value = 626 } # Karakumy
							} } } }
						}
						condition = { type = and
							condition = { type = region value = middle_east }
							condition = { type = capital condition = { type = region value = middle_east } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = middle_east }
								condition = { type = region value = asia_minor }
								condition = { type = area value = 678 } # Caucasus
								condition = { type = area value = 675 } # Depression
								condition = { type = area value = 619 } # Khazaks
								condition = { type = area value = 616 } # Samara
								condition = { type = area value = 612 } # Urals
								condition = { type = area value = 613 } # Bolgar
								condition = { type = area value = 597 } # Kuban
								condition = { type = area value = 596 } # Don
								condition = { type = area value = 780 } # Sinai
								condition = { type = area value = 789 } # Delta
								condition = { type = area value = 790 } # Nubia
							} } } }
						}
						condition = { type = and
							condition = { type = region value = asia_minor }
							condition = { type = capital condition = { type = region value = asia_minor } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = middle_east }
								condition = { type = region value = asia_minor }
								condition = { type = area value = 678 } # Caucasus
								condition = { type = area value = 597 } # Kuban
								condition = { type = area value = 559 } # Crimea
								condition = { type = area value = 512 } # Dunarea
								condition = { type = area value = 508 } # Dunav
								condition = { type = area value = 496 } # Maritsa
								condition = { type = area value = 490 } # Axios
								condition = { type = area value = 470 } # Pindhros Oros
								condition = { type = area value = 474 } # Cyclades
								condition = { type = area value = 482 } # Peloponnesos
								condition = { type = area value = 780 } # Sinai
								condition = { type = area value = 789 } # Delta
								condition = { type = area value = 790 } # Nubia
							} } } }
						}
						condition = { type = and
							condition = { type = region value = north_africa }
							condition = { type = capital condition = { type = region value = north_africa } }
							condition = { type = not value = { type = liege condition = { type = capital condition = { type = or
								condition = { type = region value = north_africa }
								condition = { type = region value = spain }
								condition = { type = area value = 694 } # Syrian Desert
								condition = { type = area value = 693 } # Mesopotamia
								condition = { type = area value = 724 } # Jordan
								condition = { type = area value = 721 } # Al Hijaz
								condition = { type = area value = 756 } # Cyprus
								condition = { type = area value = 762 } # Phoenicia
								condition = { type = area value = 474 } # Cyclades
								condition = { type = area value = 482 } # Peloponnesos
								condition = { type = area value = 338 } # Appennino
								condition = { type = area value = 339 } # Sicilia
								condition = { type = area value = 325 } # Sardgena
							} } } }
						}
					}
				}
			}
			factor = 5
		}

		#liege personal stats modifiers
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = martial value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = stewardship value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = diplomacy value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 8 }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 11 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 14 }
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = intrigue value = 17 }
			}
			factor = 2
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 6 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 3 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = martial value = 1 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 6 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 3 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = stewardship value = 1 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 6 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 3 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = diplomacy value = 1 } }
			}
			factor = 0.85
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 6 } }
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 3 } }
			}
			factor = 0.75
		}
		modifier = {
			condition = { type = liege
				condition = { type = not value = { type = intrigue value = 1 } }
			}
			factor = 0.5
		}
		modifier = {
			condition = { type = liege
				condition = { type = spymaster_csc
					condition = { type = intrigue value = 13 }
				}
			}
			factor = 1.25
		}
		modifier = {
			condition = { type = liege
				condition = { type = spymaster_csc
					condition = { type = intrigue value = 17 }
				}
			}
			factor = 1.5
		}

	}

	action_a = { #Yes...I think I shall try it!
		ai_chance = 60
		modifier = {							#primary heir highly unlikely to destabilize his realm if he sees chance to play Brutus instead
			condition = { type = primary_heir }
			factor = 10
		}
		modifier = {							#if not primary heir, doesn't stand nearly as much to gain
			condition = { type = not value = { type = primary_heir } }
			factor = 0.2
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }	#it's the way things were done ;)
			}
			factor = 3
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }	#it's really not the way things were done :D
			}
			factor = 0.2
		}
		effect = { type = piety value = -50 }				#God doesn't like murderers
		effect = { type = gold value = -50 }				#bribes to set liege up for the attempt
		effect = { type = loyalty value = -0.5 }			#can't be very loyal if you try this
		effect = { type = trigger for = liege value = 6462 }		#the assassination attempt
		effect = { type = random chance = 20				#character's actions are discovered - regardless of success or failure
			effect = { type = add_trait value = kinslayer }		#even if liege isn't kin, it would seem appropriate that character might be marked
		}
		effect = { type = random chance = 10				#chance character is caught and pays for it with his life!
			effect = { type = death }
		}
	}
	action_b = { #No...murder just isn't my style.
		ai_chance = 40
		modifier = {							#primary heir highly unlikely to destabilize his realm if he sees chance to play Brutus instead
			condition = { type = primary_heir }
			factor = 0.01
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = BYZA }	#it's the way things were done ;)
			}
			factor = 0.1
		}
		modifier = {
			condition = { type = liege
				condition = { type = title value = GERM }	#it's really not the way things were done :D
			}
			factor = 5
		}
		#far away AI vassals far more likely to slip away peacefully
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = germany }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = britain }
			condition = { type = capital condition = { type = region value = britain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = region value = north_africa } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = asia_minor }
				condition = { type = region value = middle_east }
				condition = { type = region value = balkan }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = russia }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = scandinavia }
			condition = { type = capital condition = { type = region value = scandinavia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = north_africa }
				condition = { type = region value = balkan }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = france }
			condition = { type = capital condition = { type = region value = france } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = spain }
				condition = { type = region value = germany }
				condition = { type = region value = italy }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
				condition = { type = region value = eastern_europe }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = balkan }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = spain }
			condition = { type = capital condition = { type = region value = spain } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = france }
				condition = { type = region value = italy }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = russia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = netherlands }
			condition = { type = capital condition = { type = region value = netherlands } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = france }
				condition = { type = region value = britain }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = region value = middle_east } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = spain }
				condition = { type = region value = britain }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = germany }
			condition = { type = capital condition = { type = region value = germany } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = france }
				condition = { type = region value = italy }
				condition = { type = region value = netherlands }
				condition = { type = region value = balkan }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = middle_east }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = italy }
			condition = { type = capital condition = { type = region value = italy } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = region value = britain } } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = netherlands }
				condition = { type = region value = scandinavia }
				condition = { type = region value = spain }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = france }
				condition = { type = region value = middle_east }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = balkan }
			condition = { type = capital condition = { type = region value = balkan } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = germany }
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = asia_minor }
				condition = { type = region value = north_africa }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = north_africa }
				condition = { type = region value = spain }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = middle_east }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = asia_minor }
				condition = { type = region value = netherlands }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = eastern_europe }
			condition = { type = capital condition = { type = region value = eastern_europe } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = north_africa }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = russia }
			condition = { type = capital condition = { type = region value = russia } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = middle_east }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = britain }
				condition = { type = region value = germany }
				condition = { type = region value = netherlands }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = eastern_europe }
				condition = { type = region value = scandinavia }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = middle_east }
			condition = { type = capital condition = { type = region value = middle_east } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = asia_minor }
				condition = { type = region value = russia }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = spain }
				condition = { type = region value = france }
				condition = { type = region value = scandinavia }
				condition = { type = region value = germany }
			} } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = asia_minor }
			condition = { type = capital condition = { type = region value = asia_minor } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = balkan }
				condition = { type = region value = north_africa }
				condition = { type = region value = middle_east }
			} } }
			factor = 5
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = britain }
				condition = { type = region value = netherlands }
				condition = { type = region value = eastern_europe }
				condition = { type = region value = russia }
				condition = { type = region value = scandinavia }
			} } }
			factor = 100
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = region value = germany } } }
			factor = 66
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = middle_east }
				condition = { type = region value = france }
			} } }
			factor = 33
		}
		modifier = {
			condition = { type = region value = north_africa }
			condition = { type = capital condition = { type = region value = north_africa } }
			condition = { type = liege condition = { type = capital condition = { type = or
				condition = { type = region value = italy }
				condition = { type = region value = spain }
				condition = { type = region value = balkan }
				condition = { type = region value = asia_minor }
			} } }
			factor = 5
		}
		effect = { type = piety value = 10 }
		effect = { type = add_trait value = honest }
	}
}

character_event = { #The door to your bedchamber suddenly opens...

	id = 6462
	picture = "event_intrigue"

	#triggered by 6461

	action_a = { #Ack! Help! Assassin!
		effect = { type = random chance = 50				#50% chance ruler is injured in the attempt
			effect = { type = add_trait value = war_invalid }
		}
		effect = { type = random chance = 35				#the assassination succeeds
			effect = { type = death }
		}
	}
}

#############################################################
# Clear traits if still have them and are no longer correct #
#############################################################

character_event = {  #Perhaps I should reconsider whether I ought to be so rebellious?
	id = 6463

	picture = "event_claim"

	trigger = {
		condition = { type = trait value = intestinal_worm }
		condition = { type = or
			condition = { type = not value = { type = ruler } }
			condition = { type = is_independent }
		}
	}

	mean_time_to_happen = {
		days = 10
	}

	action_a = { #I don't feel rebelious any longer.
		effect = { type = remove_trait value = intestinal_worm }
		effect = { type = loyalty value = 1.0 }
	}
}

#Free IDs in this range 6464-6499